summaryrefslogtreecommitdiffstats
path: root/debian/libosmovty4.install
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-02-16 01:24:03 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-02-16 01:33:35 +0100
commit90539ac30b6201a93b7c4e5b9747e603e64565af (patch)
treed67b278b6191713b1fb879db670febf7a0bc27b1 /debian/libosmovty4.install
parentc9a4ce600afc5a11f36c78302f017db9918b4c36 (diff)
memleak: gsmtap_sendmsg(): don't return 0 when no data was written
If less than the msgb size was written by write(), we want to return -EIO. Hence do not return zero when write() wrote zero bytes, return -EIO in that case as well. Previously, if write() returned zero, gsmtap_sendmsg() would return zero *without* freeing the msg, hence neither would the (ideal) caller. So this fixes a corner-case memleak. Change-Id: I099ae1c663c018da5db884f7e9d52c45af3ed817
Diffstat (limited to 'debian/libosmovty4.install')
0 files changed, 0 insertions, 0 deletions