nat: Close the filedescriptor when ignoring the request.

This commit is contained in:
Holger Hans Peter Freyther 2010-04-06 12:42:35 +02:00
parent 5f291d5077
commit a7c377d593
1 changed files with 1 additions and 0 deletions

View File

@ -547,6 +547,7 @@ static int ipaccess_listen_bsc_cb(struct bsc_fd *bfd, unsigned int what)
*/
if (!msc_con->is_connected) {
LOGP(DNAT, LOGL_NOTICE, "Disconnecting BSC due lack of MSC connection.\n");
close(ret);
return 0;
}