mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	Don't loop forever when trying to skip an out-sequence netlink reply.
This commit is contained in:
		@@ -114,13 +114,13 @@ nl_get_reply(void)
 | 
			
		||||
      if (NLMSG_OK(nl_last_hdr, nl_last_size))
 | 
			
		||||
	{
 | 
			
		||||
	  struct nlmsghdr *h = nl_last_hdr;
 | 
			
		||||
	  nl_last_hdr = NLMSG_NEXT(h, nl_last_size);
 | 
			
		||||
	  if (h->nlmsg_seq != nl_sync_seq)
 | 
			
		||||
	    {
 | 
			
		||||
	      log(L_WARN "nl_get_reply: Ignoring out of sequence netlink packet (%x != %x)",
 | 
			
		||||
		  h->nlmsg_seq, nl_sync_seq);
 | 
			
		||||
	      continue;
 | 
			
		||||
	    }
 | 
			
		||||
	  nl_last_hdr = NLMSG_NEXT(h, nl_last_size);
 | 
			
		||||
	  return h;
 | 
			
		||||
	}
 | 
			
		||||
      if (nl_last_size)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user