diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-07-03 13:46:56 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-07-03 13:46:56 +1000 |
commit | 9f63f22aa0ab13673f197642a66a98b09a18abd0 (patch) | |
tree | d0d0ef1e3802a533d3a935f87de175e9ea010cea /authfd.c | |
parent | e53270481c279cb50cf31bc83dc6c91835f9a524 (diff) |
- deraadt@cvs.openbsd.org 2003/06/28 16:23:06
[atomicio.c atomicio.h authfd.c clientloop.c monitor_wrap.c msg.c
progressmeter.c scp.c sftp-client.c ssh-keyscan.c ssh.h sshconnect.c
sshd.c]
deal with typing of write vs read in atomicio
Diffstat (limited to 'authfd.c')
-rw-r--r-- | authfd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -35,7 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "includes.h" | 37 | #include "includes.h" |
38 | RCSID("$OpenBSD: authfd.c,v 1.60 2003/06/11 11:18:38 djm Exp $"); | 38 | RCSID("$OpenBSD: authfd.c,v 1.61 2003/06/28 16:23:06 deraadt Exp $"); |
39 | 39 | ||
40 | #include <openssl/evp.h> | 40 | #include <openssl/evp.h> |
41 | 41 | ||
@@ -122,8 +122,8 @@ ssh_request_reply(AuthenticationConnection *auth, Buffer *request, Buffer *reply | |||
122 | PUT_32BIT(buf, len); | 122 | PUT_32BIT(buf, len); |
123 | 123 | ||
124 | /* Send the length and then the packet to the agent. */ | 124 | /* Send the length and then the packet to the agent. */ |
125 | if (atomicio(write, auth->fd, buf, 4) != 4 || | 125 | if (atomicio(vwrite, auth->fd, buf, 4) != 4 || |
126 | atomicio(write, auth->fd, buffer_ptr(request), | 126 | atomicio(vwrite, auth->fd, buffer_ptr(request), |
127 | buffer_len(request)) != buffer_len(request)) { | 127 | buffer_len(request)) != buffer_len(request)) { |
128 | error("Error writing to authentication socket."); | 128 | error("Error writing to authentication socket."); |
129 | return 0; | 129 | return 0; |