sock: add a starting debug message to listen_sock()
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit e40b91974a)
			
			
This commit is contained in:
		
							parent
							
								
									954d427565
								
							
						
					
					
						commit
						fdfa365bae
					
				| @ -254,6 +254,9 @@ int listen_sock (const char *addr, uint16_t port, vector_t listen_fds) | |||||||
|         assert (port > 0); |         assert (port > 0); | ||||||
|         assert (listen_fds != NULL); |         assert (listen_fds != NULL); | ||||||
| 
 | 
 | ||||||
|  |         log_message(LOG_INFO, "listen_sock called with addr = '%s'", | ||||||
|  |                     addr == NULL ? "(NULL)" : addr); | ||||||
|  | 
 | ||||||
|         memset (&hints, 0, sizeof (struct addrinfo)); |         memset (&hints, 0, sizeof (struct addrinfo)); | ||||||
|         hints.ai_family = AF_UNSPEC; |         hints.ai_family = AF_UNSPEC; | ||||||
|         hints.ai_socktype = SOCK_STREAM; |         hints.ai_socktype = SOCK_STREAM; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Michael Adam
						Michael Adam