PERFORCE change 136820 for review

Christian S.J. Peron csjp at FreeBSD.org
Tue Mar 4 14:37:37 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=136820

Change 136820 by csjp at ibm01 on 2008/03/04 14:37:11

	assert that our SSL handle is not null

Affected files ...

.. //depot/projects/trustedbsd/netauditd/netauditd.c#15 edit

Differences ...

==== //depot/projects/trustedbsd/netauditd/netauditd.c#15 (text+ko) ====

@@ -298,6 +298,7 @@
 
 	if (crypto_enabled == 0)
 		return (write(au->ac_fd, buf, len));
+	assert(au->ac_ssl != NULL);
 	error = SSL_write(au->ac_ssl, buf, len);
 	/* XXX error checking */
 	return (error);
@@ -476,6 +477,7 @@
 		} else if (ret == 0)
 			return (-1);
 	} else {
+		assert(asb->sb_ssl != NULL);
 		ret = SSL_read(asb->sb_ssl, asb->sb_buf,
 		    sizeof(asb->sb_buf));
 		if (ret < 0)


More information about the p4-projects mailing list