diff options
author | Stefan Sperling <ssperling@sysmocom.de> | 2018-11-15 16:32:43 +0100 |
---|---|---|
committer | Stefan Sperling <ssperling@sysmocom.de> | 2018-11-19 12:49:32 +0100 |
commit | 726b097b0c1a6042186736ffc18d4666a609453b (patch) | |
tree | d0498242ae4ddd670ea8453e4b789ee82b20701d /openbsc/src/mgcp/mgcp_network.c | |
parent | ec4de9cf9194b4553d94220b61fb2fea1811ddff (diff) |
unlink socket path correctly in rf_create_socket()cid188836
In commit 65c62e50335b500ac9e4658530ca5a1b4f5328d8 a call
to unlink() was erroneously moved up. Since then unlink()
has been called with an uninitialized path variable. The
problem went unnoticed because the return value of unlink()
was never checked.
Ensure that unlink() is called with an initialized argument and
verify success of the unlink() operation if the socket exists.
Related: CID#188836
Change-Id: Ia0c873da305cbb47aef0562f61ec21057363f294
Fixes: 65c62e50335b500ac9e4658530ca5a1b4f5328d8
Diffstat (limited to 'openbsc/src/mgcp/mgcp_network.c')
0 files changed, 0 insertions, 0 deletions