svn commit: r274797 - head/usr.sbin/ctld
Edward Tomasz Napierala
trasz at FreeBSD.org
Fri Nov 21 16:14:33 UTC 2014
Author: trasz
Date: Fri Nov 21 16:14:32 2014
New Revision: 274797
URL: https://svnweb.freebsd.org/changeset/base/274797
Log:
Fix error handling.
MFC after: 1 month
Coverity CID: 1249768
Sponsored by: The FreeBSD Foundation
Modified:
head/usr.sbin/ctld/isns.c
Modified: head/usr.sbin/ctld/isns.c
==============================================================================
--- head/usr.sbin/ctld/isns.c Fri Nov 21 15:49:41 2014 (r274796)
+++ head/usr.sbin/ctld/isns.c Fri Nov 21 16:14:32 2014 (r274797)
@@ -63,7 +63,7 @@ isns_req_alloc(void)
req->ir_buflen = sizeof(struct isns_hdr);
req->ir_usedlen = 0;
req->ir_buf = calloc(req->ir_buflen, 1);
- if (req == NULL) {
+ if (req->ir_buf == NULL) {
free(req);
log_err(1, "calloc");
return (NULL);
More information about the svn-src-head
mailing list