10125 smatch fixes for cmd-inet
@@ -36,11 +36,11 @@ * software developed by the University of California, Berkeley, and its * contributors. */ /* - * Copyright (c) 2017, Joyent, Inc. + * Copyright (c) 2018, Joyent, Inc. */ #include <assert.h> #include <stdio.h> #include <strings.h>
@@ -1987,11 +1987,11 @@ Fprintf(stderr, "%s: recvmsg %s\n", progname, strerror(errno)); } continue; - } if (cc > 0) { + } else if (cc > 0) { check_reply(ai_dst, &in_msg, cc, udp_src_port); } } }