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
1 file changed
tree: 47f6d5cc2e38abddc1b00dfe432d646c444977a2
  1. debian/
  2. openbsc/
  3. .gitignore