]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
More assert
authorRoy Marples <roy@marples.name>
Tue, 6 Sep 2016 16:14:31 +0000 (16:14 +0000)
committerRoy Marples <roy@marples.name>
Tue, 6 Sep 2016 16:14:31 +0000 (16:14 +0000)
common.c

index 0988b94a6784dc0f0fb60fb4ce541107e756f6cf..c2bb94e9653729ae0a61427763742eae5df699d3 100644 (file)
--- 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. */