X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=crypt.c;h=85ec091d76cf53e99f5bfc1e40eec9c735328a53;hp=7161e626119b5052689b03f161117c53004f6729;hb=6934fc28976594d0eb387bfef25cb938c677814c;hpb=ca059ef393a5ea00c3318314b3de5229f9fd7ea0 diff --git a/crypt.c b/crypt.c index 7161e626..85ec091d 100644 --- 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); } - ret = write_all(scc->fd, (char *)tmp, len); + ret = write_nonblock(scc->fd, (char *)tmp, len); free(tmp); return ret; }