summaryrefslogtreecommitdiff
path: root/proto/rip
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-04-20 21:06:42 +0200
committerMaria Matejka <mq@ucw.cz>2023-04-22 20:48:42 +0200
commitb3f805ce29487f790090fcf31096f5a7cf1d585d (patch)
tree5391762ee46af090a2ca5bb0d5674c66a8aab04e /proto/rip
parent074739e0e9baaba53f2a99edd348b76c3613b455 (diff)
Socket closing has its dedicated function
Diffstat (limited to 'proto/rip')
-rw-r--r--proto/rip/packets.c2
-rw-r--r--proto/rip/rip.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/proto/rip/packets.c b/proto/rip/packets.c
index fecdf896..70108ac3 100644
--- a/proto/rip/packets.c
+++ b/proto/rip/packets.c
@@ -1040,6 +1040,6 @@ rip_open_socket(struct rip_iface *ifa)
err:
sk_log_error(sk, p->p.name);
- rfree(sk);
+ sk_close(sk);
return 0;
}
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index d15177da..dded05c7 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -750,7 +750,7 @@ rip_remove_iface(struct rip_proto *p, struct rip_iface *ifa)
rem_node(NODE ifa);
- rfree(ifa->sk);
+ sk_close(ifa->sk);
rfree(ifa->lock);
rfree(ifa->timer);