Skip to content

Commit

Permalink
Curl_sec_read_msg: spell out that we ignore return code
Browse files Browse the repository at this point in the history
Coverity CID 1241947. Since if sscanf() fails, the previously set value
remains set.
  • Loading branch information
bagder committed Oct 4, 2014
1 parent d94717e commit c2791ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/security.c
Expand Up @@ -10,7 +10,7 @@
* Copyright (c) 1998, 1999, 2013 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
*
* Copyright (C) 2001 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
* Copyright (C) 2001 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* All rights reserved.
*
Expand Down Expand Up @@ -402,7 +402,7 @@ int Curl_sec_read_msg(struct connectdata *conn, char *buffer,
ret_code = 0;
else {
/* Check for error? */
sscanf(buf, "%d", &ret_code);
(void)sscanf(buf, "%d", &ret_code);
}

if(buf[decoded_len - 1] == '\n')
Expand Down

0 comments on commit c2791ca

Please sign in to comment.