summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcpd/parse.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2015-05-18 16:57:20 +0000
committerbluhm <bluhm@openbsd.org>2015-05-18 16:57:20 +0000
commit70d03dad87409ee59c53b3317a3885d5afbca8c5 (patch)
tree6bca45ebf273a64340bd882aff9f097eeddb4e38 /usr.sbin/dhcpd/parse.c
parentThe first line of a HTTP request is the method-url-version. The (diff)
downloadwireguard-openbsd-70d03dad87409ee59c53b3317a3885d5afbca8c5.tar.xz
wireguard-openbsd-70d03dad87409ee59c53b3317a3885d5afbca8c5.zip
Fix a crash reported and analyzed by Bertrand PROVOST. When a HTTP
client or server writes multiple requests or chunks in a single transfer, relayd invokes the libevent callback manually for the next data. If the callback closes the session, this resulted in an use after free. Instead of the more complicated fix suggested by Bertrand PROVOST, just move the invocation of the callback to the end of the function. So in case the callback frees any structures, they are not accessed. OK benno@ reyk@
Diffstat (limited to 'usr.sbin/dhcpd/parse.c')
0 files changed, 0 insertions, 0 deletions