X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client_common.c;h=b47364c9bd7b91c09d2e0c28fedc69efd3e5c6d0;hp=c111e351ba50dc54ca48a2dae851d2f8f72dcae7;hb=741c19c2a25c5d9e165cb99f7ff512209b7bade6;hpb=093dda1824631372587d107d64601389027c6187 diff --git a/client_common.c b/client_common.c index c111e351..b47364c9 100644 --- a/client_common.c +++ b/client_common.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1997-2014 Andre Noll + * Copyright (C) 1997 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -159,7 +159,10 @@ again: } if (n == 0) return 0; - if (!sb_received(ct->sbc[0], n, result)) + ret = sb_received(ct->sbc[0], n, result); + if (ret < 0) + return ret; + if (ret == 0) goto again; ct->sbc[0] = NULL; return 1;