Permalink
Browse files

int.c: fix possible uninitialized value call when socket family detec…

…tion fails
  • Loading branch information...
1 parent a48cb9a commit c5e52979a82b11d80256e76b7f4932e63860808f @jsynacek committed May 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 xinetd/int.c
View
@@ -109,7 +109,8 @@ static int get_server_socket( struct intercept_s *ip )
struct service *sp = SERVER_SERVICE( INT_SERVER( ip ) ) ;
union xsockaddr *sinp = INT_LOCALADDR( ip ) ;
int sd ;
- socklen_t size ;
+ socklen_t size = AF_UNIX ;
+
const char *func = "get_server_socket" ;
if( SC_IPV6(SVC_CONF(sp)) ) {

0 comments on commit c5e5297

Please sign in to comment.