projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4d6db8
)
http_negotiate_sspi.c: fix compiler warning
author
Yang Tse
<yangsita@gmail.com>
Sat, 13 Aug 2011 22:05:05 +0000
(
00:05
+0200)
committer
Yang Tse
<yangsita@gmail.com>
Sat, 13 Aug 2011 22:05:05 +0000
(
00:05
+0200)
warning C4706: assignment within conditional expression
lib/http_negotiate_sspi.c
patch
|
blob
|
history
diff --git
a/lib/http_negotiate_sspi.c
b/lib/http_negotiate_sspi.c
index
10eca69
..
875ed3c
100644
(file)
--- 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;