Date: Thu, 02 Nov 2006 10:31:55 -0500 From: Sam Baskinger <sbaskinger@lumeta.com> To: doc@freebsd.org Subject: Freeing Vs Nulling in pam_conv sample. Message-ID: <454A0F6B.1040707@lumeta.com>
next in thread | raw e-mail | index | archive | help
Hey All, I was reading the sample pam_conv as an example and suspect there might be a tiny error at the end of the function converse(..) in the doc "Sample PAM Conversation Function" at URL: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/pam/pam-sample-conv.html At the label "fail" we clear the variable aresp (3 lines from the end), then set *resp to NULL (2 lines from the end) and return a conversation error. My concern is who will free our calloc'ed aresp memory? Hope this helps (and I'm not overlooking something silly). :) Sam -- Lumeta Corporation 732.357.3545 (office) 732.564.0731 (fax) sbaskinger@lumeta.com www.lumeta.com The world's most security conscious organizations rely on Lumeta to find and prioritize what's in IT, so they can manage and secure IT better. Lumeta Corporation 220 Davidson Ave, 4th Floor Somerset, NJ 08873
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?454A0F6B.1040707>