summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_sess.c
diff options
context:
space:
mode:
authorbeck <>2014-06-01 22:42:45 +0000
committerbeck <>2014-06-01 22:42:45 +0000
commit9c68e5e249ef03e199add135515dbefcd5c0f9aa (patch)
treef92d313f5e2d33831edc16f1da2680d5b9a38731 /src/lib/libssl/ssl_sess.c
parente400c8ab56b8f77b9481123f63b1c068c96da9dd (diff)
downloadopenbsd-9c68e5e249ef03e199add135515dbefcd5c0f9aa.tar.gz
openbsd-9c68e5e249ef03e199add135515dbefcd5c0f9aa.tar.bz2
openbsd-9c68e5e249ef03e199add135515dbefcd5c0f9aa.zip
Clean up some of the nightmare of string and pointer arithmatic in
this nasty function. This gets rid of the nasty tmp variables used to hold temporary strings and the DECIMAL_SIZE hack. it gets rid of the rather pointless null checks for buf (since the original code dereferences it before checking). It also gets rid of the insane possibility this could return -1 when stuff is using the return values to compute lengths All the failure cases now return 0 and an empty string like the first error case in the original code. ok miod@ tedu@
Diffstat (limited to 'src/lib/libssl/ssl_sess.c')
0 files changed, 0 insertions, 0 deletions