commit | de76661cf34070e5e6278875b1c66f292e6b0fd3 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Sat Jan 23 10:28:09 2016 +0100 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Sat Jan 23 10:28:09 2016 +0100 |
tree | 47f6d5cc2e38abddc1b00dfe432d646c444977a2 | |
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