From: fredrik Date: Mon, 29 May 2006 19:17:17 +0000 (+0000) Subject: Fixed potential buf in filterread. X-Git-Tag: 0.1~29 X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=5b193db06069c0d85b1f90f2df23a7091edc8999;hp=d2a3e34aad6590a6a228d367378c534ab3b89bca;p=doldaconnect.git Fixed potential buf in filterread. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@617 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/daemon/transfer.c b/daemon/transfer.c index ab862a2..0fea334 100644 --- a/daemon/transfer.c +++ b/daemon/transfer.c @@ -576,7 +576,7 @@ static void filterread(struct socket *sk, struct transfer *transfer) return; bufcat(transfer->filterbuf, buf, bufsize); free(buf); - if((p = memchr(transfer->filterbuf, '\n', transfer->filterbufdata)) != NULL) + while((p = memchr(transfer->filterbuf, '\n', transfer->filterbufdata)) != NULL) { *(p++) = 0; if((p2 = strchr(transfer->filterbuf, ' ')) != NULL)