]> git.meshlink.io Git - meshlink/commitdiff
Read one less byte from an ANS_KEY request.
authorIvo Timmermans <ivo@lychnis.net>
Sun, 30 Apr 2000 18:57:16 +0000 (18:57 +0000)
committerIvo Timmermans <ivo@lychnis.net>
Sun, 30 Apr 2000 18:57:16 +0000 (18:57 +0000)
src/protocol.c

index fc23c8e22625ac678d95ff1c2d7de957336a2f54..96da23f032610458a03196276d4ca1355180ccb8 100644 (file)
@@ -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;