Read one less byte from an ANS_KEY request.
This commit is contained in:
parent
789a4c4f40
commit
d878230ebe
1 changed files with 1 additions and 1 deletions
|
@ -738,7 +738,7 @@ int ans_key_h(conn_list_t *cl)
|
||||||
conn_list_t *fw, *gk;
|
conn_list_t *fw, *gk;
|
||||||
char *key;
|
char *key;
|
||||||
cp
|
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__);
|
syslog(LOG_ERR, "%d: Receive failed: %m", __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue