Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Apr 2002 22:27:11 -0700 (PDT)
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 9889 for review
Message-ID:  <200204170527.g3H5RBQ53393@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=9889

Change 9889 by des@des.at.des.thinksec.com on 2002/04/16 22:26:16

	Set rsp to NULL before calling the conversation function, so we can
	later detect if it hasn't been touched.
	
	Sponsored by:	DARPA, NAI Labs

Affected files ...

... //depot/projects/openpam/lib/pam_vprompt.c#6 edit

Differences ...

==== //depot/projects/openpam/lib/pam_vprompt.c#6 (text+ko) ====

@@ -31,7 +31,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $P4: //depot/projects/openpam/lib/pam_vprompt.c#5 $
+ * $P4: //depot/projects/openpam/lib/pam_vprompt.c#6 $
  */
 
 #include <stdarg.h>
@@ -72,6 +72,7 @@
 	msg.msg_style = style;
 	msg.msg = msgbuf;
 	msgp = &msg;
+	rsp = NULL;
 	r = (conv->conv)(1, &msgp, &rsp, conv->appdata_ptr);
 	*resp = rsp == NULL ? NULL : rsp->resp;
 	free(rsp);

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204170527.g3H5RBQ53393>