]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - crypt.c
Rename write_nonblock() to xwrite().
[paraslash.git] / crypt.c
diff --git a/crypt.c b/crypt.c
index 85ec091d76cf53e99f5bfc1e40eec9c735328a53..f33f769f6f035c18946c21fea064b37052802583 100644 (file)
--- a/crypt.c
+++ b/crypt.c
@@ -298,7 +298,7 @@ int sc_send_bin_buffer(struct stream_cipher_context *scc, char *buf,
                memcpy(remainder, buf + l1, len - l1);
                RC4(&scc->send->key, len - l1, remainder, tmp + l1);
        }
                memcpy(remainder, buf + l1, len - l1);
                RC4(&scc->send->key, len - l1, remainder, tmp + l1);
        }
-       ret = write_nonblock(scc->fd, (char *)tmp, len);
+       ret = xwrite(scc->fd, (char *)tmp, len);
        free(tmp);
        return ret;
 }
        free(tmp);
        return ret;
 }