]> granicus.if.org Git - curl/commit
curl_sasl: Fixed potential null pointer utilisation
authorSteve Holme <steve_holme@hotmail.com>
Sun, 3 Apr 2016 16:55:17 +0000 (17:55 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 3 Apr 2016 16:55:17 +0000 (17:55 +0100)
commite655ae0c80aa3ddbacc20cac349336e4696d7d74
treeaedb212a557b283e06c65adb069d13cd696f13d3
parent7a7cdf264dbf40210c728d1fb3293968826a0d38
curl_sasl: Fixed potential null pointer utilisation

Although this should never happen due to the relationship between the
'mech' and 'resp' variables, and the way they are allocated together,
it does cause problems for code analysis tools:

V595 The 'mech' pointer was utilized before it was verified against
     nullptr. Check lines: 376, 381. curl_sasl.c 376

Bug: https://github.com/curl/curl/issues/745
Reported-by: Alexis La Goutte
lib/curl_sasl.c