summaryrefslogtreecommitdiffstats
path: root/src/if.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-06-05 13:51:51 +0100
committerRoy Marples <roy@marples.name>2020-06-05 13:51:51 +0100
commitbbc8b10a5aa9e0f8d72be2a103619a1aeb0bb933 (patch)
treea2e1f0f0403bea613c0799fa840a300cccfc0c0d /src/if.c
parent064c4c0a0be1f5266fe6272cea639110739512bf (diff)
downloaddhcpcd-bbc8b10a5aa9e0f8d72be2a103619a1aeb0bb933.tar.xz
Linux: resource limits don't easily work here either....
Diffstat (limited to 'src/if.c')
-rw-r--r--src/if.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/if.c b/src/if.c
index 69a5003c..fd05bec4 100644
--- a/src/if.c
+++ b/src/if.c
@@ -127,8 +127,10 @@ if_closesockets(struct dhcpcd_ctx *ctx)
if (ctx->pf_inet_fd != -1)
close(ctx->pf_inet_fd);
+#ifdef PF_LINK
if (ctx->pf_link_fd != -1)
close(ctx->pf_link_fd);
+#endif
if (ctx->priv) {
if_closesockets_os(ctx);