Author: pjd Date: Sun Feb 2 19:03:52 2014 New Revision: 261407 URL: http://svnweb.freebsd.org/changeset/base/261407
Log: Fix sending empty nvlist. Submitted by: Mariusz Zaborski <osho...@freebsd.org> Modified: head/lib/libnv/msgio.c Modified: head/lib/libnv/msgio.c ============================================================================== --- head/lib/libnv/msgio.c Sun Feb 2 17:48:06 2014 (r261406) +++ head/lib/libnv/msgio.c Sun Feb 2 19:03:52 2014 (r261407) @@ -364,7 +364,7 @@ buf_recv(int sock, void *buf, size_t siz unsigned char *ptr; ptr = buf; - do { + while (size > 0) { fd_wait(sock, true); done = recv(sock, ptr, size, 0); if (done == -1) { @@ -377,7 +377,7 @@ buf_recv(int sock, void *buf, size_t siz } size -= done; ptr += done; - } while (size > 0); + } return (0); } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"