diff options
Diffstat (limited to 'src/libventi')
-rw-r--r-- | src/libventi/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libventi/client.c b/src/libventi/client.c index b9e866fc..5d51cc7d 100644 --- a/src/libventi/client.c +++ b/src/libventi/client.c @@ -84,7 +84,6 @@ vtreadpacket(VtConn *z, uchar score[VtScoreSize], uint type, int n) return nil; } } - return rx.data; } @@ -119,7 +118,8 @@ vtwritepacket(VtConn *z, uchar score[VtScoreSize], uint type, Packet *p) werrstr("sha1 hash mismatch: want %V got %V", score, rx.score); return -1; } - } + }else + memmove(score, rx.score, VtScoreSize); return 0; } |