diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-09 22:58:15 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-09 22:58:15 +0100 |
commit | 83c9939550f8bbd6520dbe9dbb742d2dcb65bede (patch) | |
tree | be53ba88259033c37e3df56160ee5de9b55a0037 | |
parent | b75e0340c503cf3d76631508252cf979faf63a48 (diff) | |
download | crypto-master.zip crypto-master.tar.gz |
-rw-r--r-- | socket_conn.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/socket_conn.c b/socket_conn.c index f7317d3..92cd430 100644 --- a/socket_conn.c +++ b/socket_conn.c @@ -24,11 +24,10 @@ int socket_connected(int s) struct sockaddr_in sa; socklen_t dummy; char ch; - int r; dummy = sizeof sa; if (getpeername(s,(struct sockaddr *) &sa,&dummy) == -1) { - r = read(s,&ch,1); /* sets errno */ + read(s,&ch,1); /* sets errno */ return 0; } return 1; |