aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sinit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sinit.c b/sinit.c
index 3386241..bcaaa7e 100644
--- a/sinit.c
+++ b/sinit.c
@@ -204,6 +204,7 @@ ifup(const char *iface)
sk = socket(AF_INET, SOCK_DGRAM, 0);
if (sk < 0) {
perror("ifup: socket:");
+ return;
}
memset(&ifr, 0, sizeof(struct ifreq));