diff options
author | Adam Sampson <ats@offog.org> | 2013-07-16 15:16:22 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-07-17 21:38:54 +0200 |
commit | c851d827f90a84a7cbbeb0a8a56bafab269ca6ef (patch) | |
tree | a8b7e114a99cba3acee693eae08ba880d62e1189 /tests/pskself.c | |
parent | bef38b98c0536d81c0e4b2e78a9182e1df1d451c (diff) | |
download | gnutls-c851d827f90a84a7cbbeb0a8a56bafab269ca6ef.tar.gz |
Detect socket() error responses correctly.
The code was testing the wrong variable...
Signed-off-by: Adam Sampson <ats@offog.org>
Diffstat (limited to 'tests/pskself.c')
-rw-r--r-- | tests/pskself.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pskself.c b/tests/pskself.c index aa698dfd73..e04914e4de 100644 --- a/tests/pskself.c +++ b/tests/pskself.c @@ -209,7 +209,7 @@ server_start (void) /* Socket operations */ listen_sd = socket (AF_INET, SOCK_STREAM, 0); - if (err == -1) + if (listen_sd == -1) { perror ("socket"); fail ("server: socket failed\n"); |