From: Roy Marples Date: Tue, 6 Sep 2016 16:14:31 +0000 (+0000) Subject: More assert X-Git-Tag: v6.11.4~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a20e56102c2131ced26cb83939339cf5cd812c11;p=thirdparty%2Fdhcpcd.git More assert --- diff --git a/common.c b/common.c index 0988b94a..c2bb94e9 100644 --- a/common.c +++ b/common.c @@ -391,6 +391,7 @@ recvmsg_realloc(int fd, struct msghdr *msg, int flags) void *n; assert(msg != NULL); + assert(msg->msg_iov != NULL && msg->msg_iovlen > 0); assert((flags & (MSG_PEEK | MSG_TRUNC)) == 0); /* Assume we are reallocing the last iovec. */