aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2022-09-09 14:49:58 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2022-09-12 12:04:25 +0200
commit98cc81bc98a894998a0bf606fb0f9a071b5a289b (patch)
tree6518daf0b6e6c9d37a9867c6bcd4c270760fc429
parent95d57c180394b8b4d3b41fcf8f9fdf764e0082c2 (diff)
osmux: osmux_xfrm_input_close_circuit(): Log circuit not found
-rw-r--r--src/osmux.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/osmux.c b/src/osmux.c
index 71afe5c..5515e88 100644
--- a/src/osmux.c
+++ b/src/osmux.c
@@ -843,8 +843,11 @@ void osmux_xfrm_input_close_circuit(struct osmux_in_handle *h, int ccid)
struct osmux_circuit *circuit;
circuit = osmux_batch_find_circuit(batch, ccid);
- if (circuit == NULL)
+ if (circuit == NULL) {
+ LOGP(DLMUX, LOGL_NOTICE, "Unable to close circuit %d: Not found\n",
+ ccid);
return;
+ }
osmux_batch_del_circuit(batch, circuit);
}