mirror of
https://github.com/darkk/redsocks.git
synced 2025-08-26 03:35:30 +00:00
Properly handle unsupported qops in digest_authentication_encode().
Auth-int is not supported yet, so the function should return early.
This commit is contained in:
parent
cf3dc2c4f0
commit
c97a9e0c77
@ -178,7 +178,7 @@ char* digest_authentication_encode(const char *line, const char *user, const cha
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (qop && strncasecmp(qop, "auth", 4) != 0) {
|
||||
if (qop && strncasecmp(qop, "auth", 5) != 0) {
|
||||
/* FIXME: currently don't support auth-int */
|
||||
free(realm);
|
||||
free(opaque);
|
||||
|
Loading…
Reference in New Issue
Block a user