1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-15 14:05:03 -05:00

Curl_sec_read_msg: spell out that we ignore return code

Coverity CID 1241947. Since if sscanf() fails, the previously set value
remains set.
This commit is contained in:
Daniel Stenberg 2014-10-04 15:21:39 +02:00
parent d94717e099
commit c2791caf53

View File

@ -10,7 +10,7 @@
* Copyright (c) 1998, 1999, 2013 Kungliga Tekniska Högskolan * Copyright (c) 1998, 1999, 2013 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (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. * All rights reserved.
* *
@ -402,7 +402,7 @@ int Curl_sec_read_msg(struct connectdata *conn, char *buffer,
ret_code = 0; ret_code = 0;
else { else {
/* Check for error? */ /* Check for error? */
sscanf(buf, "%d", &ret_code); (void)sscanf(buf, "%d", &ret_code);
} }
if(buf[decoded_len - 1] == '\n') if(buf[decoded_len - 1] == '\n')