]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/dsi/dsi_stream.c
Fix regression introduced by 88436a544d0c87299a3417432b15e897f1ea15ec
[netatalk.git] / 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;
               }
           }