summaryrefslogtreecommitdiffstats
path: root/lib/libssl/dtls1.h
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2014-06-01 22:42:45 +0000
committerbeck <beck@openbsd.org>2014-06-01 22:42:45 +0000
commit183f9028f9d04b34b7b3ab09dd7b4ff02012109b (patch)
treefe9c1f10da9cef2023d44f2b7b7373801c47291c /lib/libssl/dtls1.h
parentrealloc with NULL is same as malloc (diff)
downloadwireguard-openbsd-183f9028f9d04b34b7b3ab09dd7b4ff02012109b.tar.xz
wireguard-openbsd-183f9028f9d04b34b7b3ab09dd7b4ff02012109b.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 'lib/libssl/dtls1.h')
0 files changed, 0 insertions, 0 deletions