Commits

Bryan O'Sullivan committed 3ca8c95

Some bugfixes.

Comments (0)

Files changed (2)

     }
 
     if (len < 0) {
+        do_log(LOG_ERR, "Malformed netlink packet length");
         return -1;
     }
 
     struct if_info *i;
 
     if ((i = if_info_get_interface(hdr, attrs)) == NULL) {
-        return -1;
+        return 0;
     }
 
     if (i->flags == info->ifi_flags) {
                 int err;
 
                 if ((err = callback(hdr, arg)) == -1) {
+                    do_log(LOG_ERR, "Callback failed");
                     return;
                 }
             }
 
             if (callback) {
                 if ((err = callback(hdr, arg)) == -1) {
+                    do_log(LOG_ERR, "Callback failed");
                     return;
                 }
             }