summaryrefslogtreecommitdiffstats
path: root/CodingStyle
diff options
context:
space:
mode:
authorAlan Dunn <amdunn@gmail.com>2014-02-05 17:26:57 -0600
committerAndreas Schneider <asn@cryptomilk.org>2014-02-06 19:41:01 +0100
commit2a183440c73504eb40c38ea7fe37cdaa80207d90 (patch)
tree26d18df7738f910fce52fe7baad9b16f6b1a8e1e /CodingStyle
parentbb0023b7c703a932b59756b728c95ca7e28e58c4 (diff)
downloadlibssh-2a183440c73504eb40c38ea7fe37cdaa80207d90.tar.gz
libssh-2a183440c73504eb40c38ea7fe37cdaa80207d90.tar.xz
libssh-2a183440c73504eb40c38ea7fe37cdaa80207d90.zip
packet_crypt: Make packet_{en,de}crypt fail consistently on len == 0
Right now the behavior of packet_{en,de}crypt on len == 0 depends on the behavior of malloc. Instead, make these consistently fail based on what I assume the desired behavior is due to the first error message in each. Signed-off-by: Alan Dunn <amdunn@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'CodingStyle')
0 files changed, 0 insertions, 0 deletions