diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-06-13 02:35:33 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-06-13 02:35:33 +0200 |
commit | 9c3e4e97f6995bde7879a5907497c35f83ef6b56 (patch) | |
tree | 57bddd7680787cae792ea5f2aebc1cba60e1d236 | |
parent | 76f76162b2af4b5dfe093654851339b957f7305a (diff) | |
download | libgit2-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transports/http.c b/src/transports/http.c index a7eff7365..ae608ab3d 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; |