summaryrefslogtreecommitdiff
path: root/sys/src/9/ip/ethermedium.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2021-09-25 20:35:04 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2021-09-25 20:35:04 +0000
commit1cff923af4dbcaaab515cc04ea40c559eab7830f (patch)
treeb152b784b2d8ee106b0319b278bbb8d2c5632ffe /sys/src/9/ip/ethermedium.c
parent235ef367d793db705b1b4ef20913c697eccd13a6 (diff)
devtls: fix bwrite memory leak when channel stops being open
tlsbwrite() would call checkstate() before calling tlsrecwrite() to make sure the channel is open. however, because checkstate() only raises the error, the Block* passed wont be freed and would result in a memory leak. move the checkstate() call inside tlsrecwrite() to reuse the error handling that frees the block on error.
Diffstat (limited to 'sys/src/9/ip/ethermedium.c')
0 files changed, 0 insertions, 0 deletions