]> arthur.barton.de Git - netatalk.git/commitdiff
Fix regression introduced by 88436a544d0c87299a3417432b15e897f1ea15ec
authorFrank Lahm <franklahm@googlemail.com>
Thu, 2 Aug 2012 15:43:02 +0000 (17:43 +0200)
committerFrank Lahm <franklahm@googlemail.com>
Thu, 2 Aug 2012 15:43:02 +0000 (17:43 +0200)
libatalk/dsi/dsi_stream.c

index c130eb90a33fb40b70776363a2d8f5a48c8da453..154297748fbd235ce5ffb325d4f7e356d4c67156 100644 (file)
@@ -533,7 +533,7 @@ int dsi_stream_send(DSI *dsi, void *buf, size_t length)
           break;
       else if (len < 0) { /* error */
           if (errno == EAGAIN || errno == EWOULDBLOCK) {
-              if (dsi_peek(dsi) != 0) {
+              if (dsi_peek(dsi) == 0) {
                   continue;
               }
           }