Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2008 14:37:36 GMT
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 136820 for review
Message-ID:  <200803041437.m24EbaWY008374@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=136820

Change 136820 by csjp@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)



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