diff options
Diffstat (limited to 'lib/security.c')
-rw-r--r-- | lib/security.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/security.c b/lib/security.c index 4a8f44433..f4a876341 100644 --- a/lib/security.c +++ b/lib/security.c @@ -367,6 +367,10 @@ int Curl_sec_read_msg(struct connectdata *conn, char *buffer, size_t decoded_sz = 0; CURLcode error; + if(!conn->mech) + /* not inititalized, return error */ + return -1; + DEBUGASSERT(level > PROT_NONE && level < PROT_LAST); error = Curl_base64_decode(buffer + 4, (unsigned char **)&buf, &decoded_sz); |