mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	Allow sk_close(NULL).
This commit is contained in:
		@@ -698,7 +698,7 @@ bad:
 | 
				
			|||||||
void
 | 
					void
 | 
				
			||||||
sk_close(sock *s)
 | 
					sk_close(sock *s)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  if (s->entered)
 | 
					  if (s && s->entered)
 | 
				
			||||||
    s->type = SK_DELETED;
 | 
					    s->type = SK_DELETED;
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
    rfree(s);
 | 
					    rfree(s);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user