1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-20 08:23:50 +03:00

Coverity fixes

This commit is contained in:
Marc VanHeyningen
2008-03-14 14:26:28 -08:00
committed by Volker Lendecke
parent 097af0309d
commit 3fc85d2259
27 changed files with 162 additions and 82 deletions

View File

@@ -48,7 +48,7 @@ static int socketpair_tcp(int fd[2])
#endif
sock2.sin_family = PF_INET;
bind(listener, (struct sockaddr *)&sock2, sizeof(sock2));
if (bind(listener, (struct sockaddr *)&sock2, sizeof(sock2)) != 0) goto failed;
if (listen(listener, 1) != 0) goto failed;