From 9043205cd9b936801a0071782747677d6f13e26e Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Tue, 26 Jan 2021 16:09:18 +0100 Subject: ns2: Fix assert when removing a bind listen Change-Id: I3edd1e838f7516d9224045710047419039aa0ec0 Fixes: OS#4977 --- src/gb/gprs_ns2_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c index 1c40759c..c2b9bd9a 100644 --- a/src/gb/gprs_ns2_vty.c +++ b/src/gb/gprs_ns2_vty.c @@ -516,7 +516,7 @@ DEFUN(cfg_no_ns_bind_listen, cfg_no_ns_bind_listen_cmd, if (!bind) return CMD_ERR_NOTHING_TODO; - OSMO_ASSERT(bind->ll != GPRS_NS2_LL_UDP); + OSMO_ASSERT(bind->ll == GPRS_NS2_LL_UDP); bind->driver->free_bind(bind); return CMD_SUCCESS; } -- cgit v1.2.3