diff options
Diffstat (limited to 'lib/memdebug.c')
-rw-r--r-- | lib/memdebug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/memdebug.c b/lib/memdebug.c index e25ad4fe3..ef7c0c6ee 100644 --- a/lib/memdebug.c +++ b/lib/memdebug.c @@ -135,7 +135,7 @@ int curl_sclose(int sockfd, int line, char *source) int res=sclose(sockfd); fprintf(logfile?logfile:stderr, "FD %s:%d sclose(%d)\n", source, line, sockfd); - return sockfd; + return res; } FILE *curl_fopen(char *file, char *mode, int line, char *source) |