sgw: gwContainer can't be null here
[olsrd.git] / src / gateway.c
index 4c4b5a7..99df6fd 100644 (file)
@@ -1550,7 +1550,11 @@ static bool determineBestOverallLink(enum sgw_multi_change_phase phase) {
     bestOverallLink.link.egress = bestEgressLink;
     bestOverallLink.olsrTunnelIfIndex = 0;
   } else {
-    struct olsr_iptunnel_entry * tunnel = !gwContainer ? NULL : gwContainer->tunnel;
+    struct olsr_iptunnel_entry * tunnel;
+
+    assert(!gwContainer);
+
+    tunnel = gwContainer->tunnel;
 
     bestOverallLink.valid = olsrGw;
     bestOverallLink.isOlsr = true;