shlist

share and manage lists between multiple people
Log | Files | Refs

commit 346561a9b8a026d5303db716f1750a68e231c7f6
parent 52d333cb08d91966b560a22a2082ca21fc5f6d83
Author: kyle <kyle@getaddrinfo.net>
Date:   Sun,  9 Aug 2015 21:37:25 -0400

server: use network byte order for msg type 0 header

Diffstat:
Msl | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sl b/sl @@ -247,8 +247,7 @@ sub msg_new_device # XXX: need to check the db to make sure this isn't duplicate my $token = sha256_base64(arc4random_bytes(32)); - # token length 43 = 0x2b - print $new_sock "\x00\x00\x2b\x00"; + print $new_sock pack("nn", 0, length($token)); print $new_sock $token; $new_device_sth->execute($token, $ph_num, time); print "info: $addr: added new device $ph_num:$token\n";