diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-01-23 10:28:09 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-01-23 10:28:09 +0100 |
commit | de76661cf34070e5e6278875b1c66f292e6b0fd3 (patch) | |
tree | 47f6d5cc2e38abddc1b00dfe432d646c444977a2 /openbsc/tests/mgcp/Makefile.am | |
parent | f9f44901a23e7f2b472a2e0987bd70df86b4271a (diff) |
gtphub: Fix use after free on failure
Even if fclose fails the stream is inaccessible and the second fclose
might cause memory violation.
Linux manpage says:
Upon successful completion 0 is returned. Otherwise, EOF is returned
and errno is set to indicate the error. In either case any further
access (including another call to fclose()) to the stream results in
undefined behavior.
Fixes: CID#57958
Diffstat (limited to 'openbsc/tests/mgcp/Makefile.am')
0 files changed, 0 insertions, 0 deletions