summaryrefslogtreecommitdiff
blob: cb407822e4458950fb8d974609cc1f3511c2e42c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff -urN ifplugd-0.26.orig/src/ifplugd.c ifplugd-0.26/src/ifplugd.c
--- ifplugd-0.26.orig/src/ifplugd.c	2004-12-20 08:39:14.682706517 -0500
+++ ifplugd-0.26/src/ifplugd.c	2004-12-20 08:40:56.903506651 -0500
@@ -64,7 +64,7 @@
 	interface_do_message = 1;
 
 char *interface = NULL;
-char *run = SYSCONFDIR"/ifplugd/ifplugd.action";
+char *run = "/usr/sbin/ifplugd.action";
 char *extra_arg = NULL;
 
 int polltime = 1,
diff -urN ifplugd-0.26.orig/src/nlapi.c ifplugd-0.26/src/nlapi.c
--- ifplugd-0.26.orig/src/nlapi.c	2004-12-20 08:39:14.682706517 -0500
+++ ifplugd-0.26/src/nlapi.c	2004-12-20 08:39:50.185734092 -0500
@@ -86,7 +86,7 @@
         for (; bytes > 0; p = NLMSG_NEXT(p, bytes)) {
             struct callback_info *c;
             
-            if (!NLMSG_OK(p, bytes) || (size_t) bytes < sizeof(struct nlmsghdr) || (size_t) bytes < p->nlmsg_len) {
+            if (!NLMSG_OK(p, (size_t) bytes) || (size_t) bytes < sizeof(struct nlmsghdr) || (size_t) bytes < (size_t) p->nlmsg_len) {
                 daemon_log(LOG_ERR, "NLAPI: Packet too small or truncated!\n");
                 return -1;
             }