From d878230ebef5f1a14a23c266dc425666d9e805eb Mon Sep 17 00:00:00 2001 From: Ivo Timmermans Date: Sun, 30 Apr 2000 18:57:16 +0000 Subject: [PATCH] Read one less byte from an ANS_KEY request. --- src/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol.c b/src/protocol.c index fc23c8e2..96da23f0 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -738,7 +738,7 @@ int ans_key_h(conn_list_t *cl) conn_list_t *fw, *gk; char *key; cp - if(read(cl->meta_socket, &((char*)(&tmp))[1], sizeof(tmp)-2) <= 0) + if(read(cl->meta_socket, &((char*)(&tmp))[1], sizeof(tmp)-3) <= 0) { syslog(LOG_ERR, "%d: Receive failed: %m", __LINE__); return -1; -- 2.39.5