diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-26 09:27:08 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-26 09:27:08 +0100 |
commit | 929d788e21fb0392c8f9962c32def448c16efecd (patch) | |
tree | fe71758deecc034a92699c4372db5bec6d1d0058 /openbsc | |
parent | 6958065f8566caf2514fe4587b5bfca7ded89f08 (diff) |
nat: Clear all pending messages in case the BSC disconnected
Throw away all messages we have scheduled but never delivered
to the BSC.
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/nat/bsc_nat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index ece58231b..309b6dbe3 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -481,6 +481,7 @@ static void remove_bsc_connection(struct bsc_connection *connection) struct sccp_connections *sccp_patch, *tmp; bsc_unregister_fd(&connection->write_queue.bfd); close(connection->write_queue.bfd.fd); + write_queue_clear(&connection->write_queue); llist_del(&connection->list_entry); /* stop the timeout timer */ |