Key forwarding, write one byte extra.
This commit is contained in:
parent
75d351eaf1
commit
33cfdf43f4
1 changed files with 2 additions and 3 deletions
|
@ -744,7 +744,6 @@ cp
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
syslog(LOG_DEBUG, "%08lx %08lx %d %hd", tmp.from, tmp.to, tmp.expiry, tmp.len);
|
|
||||||
key = xmalloc(tmp.len);
|
key = xmalloc(tmp.len);
|
||||||
|
|
||||||
if(read(cl->meta_socket, key, tmp.len + 2) <= 0)
|
if(read(cl->meta_socket, key, tmp.len + 2) <= 0)
|
||||||
|
@ -796,7 +795,7 @@ cp
|
||||||
syslog(LOG_ERR, "send failed: %s:%d: %m", __FILE__, __LINE__);
|
syslog(LOG_ERR, "send failed: %s:%d: %m", __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if(write(fw->nexthop->meta_socket, key, tmp.len + 1) < 0)
|
if(write(fw->nexthop->meta_socket, key, tmp.len + 2) < 0)
|
||||||
{
|
{
|
||||||
syslog(LOG_ERR, "send failed: %s:%d: %m", __FILE__, __LINE__);
|
syslog(LOG_ERR, "send failed: %s:%d: %m", __FILE__, __LINE__);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue