Read one less byte from an ANS_KEY request.

This commit is contained in:
Ivo Timmermans 2000-04-30 18:57:16 +00:00
parent 789a4c4f40
commit d878230ebe

View 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;