diff options
author | trasz <trasz@FreeBSD.org> | 2014-11-21 16:14:32 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2014-11-21 16:14:32 +0000 |
commit | e46d09e9b4d091074421f0abc11917a785d22b40 (patch) | |
tree | 47426e3d0e7b2baadb9b00efa86b7214ccc2e05c /usr.sbin | |
parent | 706c90c17428616efff68ecece19e560d6949089 (diff) | |
download | FreeBSD-src-e46d09e9b4d091074421f0abc11917a785d22b40.zip FreeBSD-src-e46d09e9b4d091074421f0abc11917a785d22b40.tar.gz |
Fix error handling.
MFC after: 1 month
Coverity CID: 1249768
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ctld/isns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ctld/isns.c b/usr.sbin/ctld/isns.c index 2a7bd97..11eef3e0 100644 --- a/usr.sbin/ctld/isns.c +++ b/usr.sbin/ctld/isns.c @@ -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); |