diff options
author | Dan Winship <danw@gnome.org> | 2009-11-30 11:40:39 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2009-11-30 11:40:39 -0500 |
commit | b9c5d12f546642a3675274209f21997c7773c10c (patch) | |
tree | e0671bb6387ddb1dc4236e7a017b737371176898 /libsoup/soup-auth-domain-digest.c | |
parent | 3076f99d1aa8e8c87ea6b22c0f0fdbc382e449b6 (diff) | |
download | libsoup-b9c5d12f546642a3675274209f21997c7773c10c.tar.gz |
[SoupAuthDomainDigest] fix nc parsing
We were parsing it as decimal rather than hex, which meant the auth
would fail and return 401 again after 10 requests.
Noted by Chris Head,
https://bugzilla.gnome.org/show_bug.cgi?id=602898
Diffstat (limited to 'libsoup/soup-auth-domain-digest.c')
-rw-r--r-- | libsoup/soup-auth-domain-digest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-auth-domain-digest.c b/libsoup/soup-auth-domain-digest.c index 509995ec..e5e3164a 100644 --- a/libsoup/soup-auth-domain-digest.c +++ b/libsoup/soup-auth-domain-digest.c @@ -303,7 +303,7 @@ check_hex_urp (SoupAuthDomain *domain, SoupMessage *msg, nc = g_hash_table_lookup (params, "nc"); if (!nc) return FALSE; - nonce_count = atoi (nc); + nonce_count = strtoul (nc, NULL, 16); if (nonce_count <= 0) return FALSE; cnonce = g_hash_table_lookup (params, "cnonce"); |