debugging

This commit is contained in:
rsc 2004-06-09 14:03:54 +00:00
parent 09a5f19772
commit 4192ac1de1

View file

@ -84,7 +84,6 @@ vtreadpacket(VtConn *z, uchar score[VtScoreSize], uint type, int n)
return nil; return nil;
} }
} }
return rx.data; 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); werrstr("sha1 hash mismatch: want %V got %V", score, rx.score);
return -1; return -1;
} }
} }else
memmove(score, rx.score, VtScoreSize);
return 0; return 0;
} }