Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/nvi/dist/ipc CID 1132758: Unchecked return value
details: https://anonhg.NetBSD.org/src/rev/8d85e7463748
branches: trunk
changeset: 791672:8d85e7463748
user: christos <christos%NetBSD.org@localhost>
date: Wed Nov 27 20:50:45 2013 +0000
description:
CID 1132758: Unchecked return value
diffstat:
external/bsd/nvi/dist/ipc/ipc_method.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r a3884e4763ea -r 8d85e7463748 external/bsd/nvi/dist/ipc/ipc_method.c
--- a/external/bsd/nvi/dist/ipc/ipc_method.c Wed Nov 27 20:48:28 2013 +0000
+++ b/external/bsd/nvi/dist/ipc/ipc_method.c Wed Nov 27 20:50:45 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipc_method.c,v 1.4 2013/11/27 17:51:04 christos Exp $ */
+/* $NetBSD: ipc_method.c,v 1.5 2013/11/27 20:50:45 christos Exp $ */
/*-
* Copyright (c) 1996
* Rob Zimmermann. All rights reserved.
@@ -92,7 +92,8 @@
char dummy;
struct iovec iov;
- socketpair(AF_LOCAL, SOCK_STREAM, 0, sockets);
+ if (socketpair(AF_LOCAL, SOCK_STREAM, 0, sockets) == -1)
+ goto alloc_err;
memset(&mh, 0, sizeof(mh));
mh.msg_namelen = 0;
Home |
Main Index |
Thread Index |
Old Index