summaryrefslogtreecommitdiff
path: root/source4/lib/http
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-07-20 14:44:51 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-08-07 15:20:02 +0200
commit56ab5cdbe0bddb3edaf0e7bf82f2c04cea6e64a4 (patch)
tree9f59eafa1a8e64fa37bb91249f41a20332ec25f3 /source4/lib/http
parente42f12c6bec41a9d6c7f0f3c67b7fd9607b7457e (diff)
downloadsamba-56ab5cdbe0bddb3edaf0e7bf82f2c04cea6e64a4.tar.gz
s4:lib/http: remove indentation level from http_parse_auth_response()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/lib/http')
-rw-r--r--source4/lib/http/http_auth.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/source4/lib/http/http_auth.c b/source4/lib/http/http_auth.c
index d134bd65219..701d9b3bae3 100644
--- a/source4/lib/http/http_auth.c
+++ b/source4/lib/http/http_auth.c
@@ -61,17 +61,19 @@ static NTSTATUS http_parse_auth_response(enum http_auth_method auth,
struct http_header *h;
for (h = auth_response->headers; h != NULL; h = h->next) {
- if (strncasecmp(h->key, "WWW-Authenticate", 16) == 0) {
- switch (auth) {
- case HTTP_AUTH_NTLM:
- if (strncasecmp(h->value, "NTLM ", 5) == 0) {
- *in = data_blob_string_const(h->value);
- return NT_STATUS_OK;
- }
- break;
- default:
- break;
+ if (strncasecmp(h->key, "WWW-Authenticate", 16) != 0) {
+ continue;
+ }
+
+ switch (auth) {
+ case HTTP_AUTH_NTLM:
+ if (strncasecmp(h->value, "NTLM ", 5) == 0) {
+ *in = data_blob_string_const(h->value);
+ return NT_STATUS_OK;
}
+ break;
+ default:
+ break;
}
}