]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Set dev fd to -1 when stopped.
authorRoy Marples <roy@marples.name>
Fri, 7 Feb 2014 11:06:17 +0000 (11:06 +0000)
committerRoy Marples <roy@marples.name>
Fri, 7 Feb 2014 11:06:17 +0000 (11:06 +0000)
dev.c

diff --git a/dev.c b/dev.c
index 4b2a9648e6f66c93d1a63c7354dde7329ecfcc6a..fe5eb18e6c51f4132e51ecd180f34852130870ef 100644 (file)
--- a/dev.c
+++ b/dev.c
@@ -72,6 +72,7 @@ dev_stop(int stop)
                dev->stop();
                free(dev);
                dev = NULL;
+               fd = -1;
        }
        if (handle) {
                dlclose(handle);