version 1.60, 2003/06/11 11:18:38 |
version 1.61, 2003/06/28 16:23:06 |
|
|
PUT_32BIT(buf, len); |
PUT_32BIT(buf, len); |
|
|
/* Send the length and then the packet to the agent. */ |
/* Send the length and then the packet to the agent. */ |
if (atomicio(write, auth->fd, buf, 4) != 4 || |
if (atomicio(vwrite, auth->fd, buf, 4) != 4 || |
atomicio(write, auth->fd, buffer_ptr(request), |
atomicio(vwrite, auth->fd, buffer_ptr(request), |
buffer_len(request)) != buffer_len(request)) { |
buffer_len(request)) != buffer_len(request)) { |
error("Error writing to authentication socket."); |
error("Error writing to authentication socket."); |
return 0; |
return 0; |