Fix if_ifwithsock for dualsocket
authorHenning Rogge <hrogge@googlemail.com>
Fri, 22 Jan 2010 16:56:59 +0000 (17:56 +0100)
committerHenning Rogge <hrogge@googlemail.com>
Fri, 22 Jan 2010 16:56:59 +0000 (17:56 +0100)
src/interfaces.c

index d4558c0..94a75fe 100644 (file)
@@ -170,7 +170,7 @@ if_ifwithsock(int fd)
   ifp = ifnet;
 
   while (ifp) {
-    if (ifp->olsr_socket == fd)
+    if (ifp->olsr_socket == fd || ifp->send_socket == fd)
       return ifp;
     ifp = ifp->int_next;
   }