aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-08-14 00:05:05 +0200
committerYang Tse <yangsita@gmail.com>2011-08-14 00:05:05 +0200
commit08b05efd2022c8041f2c5526bf82f9c71600618a (patch)
treed6e72f6bc2335b74eef6d22a0050697cd430510a
parentb4d6db83debe4f57a94d23e50764f290c86f753a (diff)
http_negotiate_sspi.c: fix compiler warning
warning C4706: assignment within conditional expression
-rw-r--r--lib/http_negotiate_sspi.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/http_negotiate_sspi.c b/lib/http_negotiate_sspi.c
index 10eca697c..875ed3cfd 100644
--- a/lib/http_negotiate_sspi.c
+++ b/lib/http_negotiate_sspi.c
@@ -127,9 +127,11 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
return -1;
}
- if(strlen(neg_ctx->server_name) == 0 &&
- (ret = get_gss_name(conn, proxy, neg_ctx)))
- return ret;
+ if(0 == strlen(neg_ctx->server_name)) {
+ ret = get_gss_name(conn, proxy, neg_ctx);
+ if(ret)
+ return ret;
+ }
if(!neg_ctx->output_token) {
PSecPkgInfo SecurityPackage;