aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-11-15 23:15:00 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-11-15 23:15:00 +0100
commit88f585c3a10ef2fa2123bf55580544de2c20bd2e (patch)
tree1d574bf7da2c4c227d3efd8b67b78eb58bee9991
parent051485d9e0d94cbccc46493462ae5b38577e0172 (diff)
sasl; fix checksrc warnings
-rw-r--r--lib/curl_sasl.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c
index 05b201a14..6c1858421 100644
--- a/lib/curl_sasl.c
+++ b/lib/curl_sasl.c
@@ -1676,15 +1676,17 @@ CURLcode Curl_sasl_continue(struct SASL *sasl, struct connectdata *conn,
case SASL_OAUTH2_RESP:
/* The continuation is optional so check the response code */
- if (code == sasl->params->finalcode) {
+ if(code == sasl->params->finalcode) {
/* Final response was received so we are done */
*progress = SASL_DONE;
state(sasl, conn, SASL_STOP);
return result;
}
- else if (code == sasl->params->contcode) {
- /* Acknowledge the continuation by sending a 0x01 response base64 encoded */
- if (!(resp = strdup("AQ==")))
+ else if(code == sasl->params->contcode) {
+ /* Acknowledge the continuation by sending a 0x01 response base64
+ encoded */
+ resp = strdup("AQ==");
+ if(!resp)
result = CURLE_OUT_OF_MEMORY;
break;
}