diff options
| author | Roy Marples <roy@marples.name> | 2009-01-27 19:40:05 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-01-27 19:40:05 +0000 |
| commit | 146d8134bdcbb0d21b51f0da2d1b5a7ce30dbf07 (patch) | |
| tree | 68dbed70f3ce1ef4da43f36fea741b6699ae0f06 /dhcpcd.c | |
| parent | fa344ba2b1dcf002f348b7fa69ef422585b4b438 (diff) | |
| download | dhcpcd-146d8134bdcbb0d21b51f0da2d1b5a7ce30dbf07.tar.xz | |
Fix compile on BSD.
Diffstat (limited to 'dhcpcd.c')
| -rw-r--r-- | dhcpcd.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1416,7 +1416,10 @@ main(int argc, char **argv) } } - init_socket(); + if (init_socket() == -1) { + syslog(LOG_ERR, "init_socket: %m"); + exit(EXIT_FAILURE); + } if (ifo->options & DHCPCD_LINK) { linkfd = open_link_socket(); if (linkfd == -1) |
