]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Babel: Fix compilation when LOCAL_DEBUG is set in packets.c
authorToke Høiland-Jørgensen <toke@toke.dk>
Fri, 22 Apr 2022 15:04:56 +0000 (17:04 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Fri, 22 Apr 2022 15:04:56 +0000 (17:04 +0200)
The debug output was not updated with the rest of the code, so packets.c
fails to compile if LOCAL_DEBUG is set.

proto/babel/packets.c

index f13410e2a5ab235e5414168814fb7c2da09351bb..2647a79f1baf642f5da8193a10c4ea39fab4f80c 100644 (file)
@@ -2011,7 +2011,7 @@ babel_auth_sign(struct babel_iface *ifa, ip_addr dest)
   }
 
   DBG("Added MAC signatures (%d bytes) on ifa %s for dest %I\n",
-      tot_len, ifa->ifname, dest);
+      pos - (pkt + len), ifa->ifname, dest);
 
   return pos - (pkt + len);
 }