mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	Do not allow gateway routes with NULL iface.
This commit is contained in:
		@@ -339,7 +339,10 @@ krt_read_rt(struct ks_msg *msg, struct krt_proto *p, int scan)
 | 
			
		||||
    if (ng && ng->scope)
 | 
			
		||||
      a.iface = ng->iface;
 | 
			
		||||
    else
 | 
			
		||||
      log(L_WARN "Kernel told us to use non-neighbor %I for %I/%d", igate, net->n.prefix, net->n.pxlen);
 | 
			
		||||
      {
 | 
			
		||||
	log(L_WARN "Kernel told us to use non-neighbor %I for %I/%d", ra.gw, net->n.prefix, net->n.pxlen);
 | 
			
		||||
	return;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
    a.dest = RTD_ROUTER;
 | 
			
		||||
    a.gw = igate;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user