libdmsg - Fix buffer indexing bug in crypted path
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Feb 2015 16:11:33 +0000 (08:11 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Feb 2015 16:11:33 +0000 (08:11 -0800)
commitf2239a4e4b26690b110df082d3616165c94839fc
treed30e30cbcf4a526dd6bb4702459c848ad058e66e
parent4235d6d609bf06c1fd35dae6e73262100d503836
libdmsg - Fix buffer indexing bug in crypted path

* Fix a buffering index bug in the crypted path which causes a buffer
  overrun and/or implodes the connection on a protocol error.
lib/libdmsg/crypto.c
lib/libdmsg/msg.c