summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-06-13 02:35:33 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-06-13 02:35:33 +0200
commit9c3e4e97f6995bde7879a5907497c35f83ef6b56 (patch)
tree57bddd7680787cae792ea5f2aebc1cba60e1d236
parent76f76162b2af4b5dfe093654851339b957f7305a (diff)
downloadlibgit2-9c3e4e97f6995bde7879a5907497c35f83ef6b56.tar.gz
http: fix typo in credentials logic
We want to check whether the credentials callback is NULL, not whether the payload is.
-rw-r--r--src/transports/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transports/http.c b/src/transports/http.c
index a7eff736..ae608ab3 100644
--- a/src/transports/http.c
+++ b/src/transports/http.c
@@ -260,7 +260,7 @@ static int on_headers_complete(http_parser *parser)
if (parser->status_code == 401 &&
get_verb == s->verb) {
- if (!t->owner->cred_acquire_payload) {
+ if (!t->owner->cred_acquire_cb) {
no_callback = 1;
} else {
int allowed_types = 0;