0
0
mirror of https://github.com/darkk/redsocks.git synced 2025-08-25 19:25: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:
Przemyslaw Pawelczyk 2011-01-28 02:06:17 +01:00
parent cf3dc2c4f0
commit c97a9e0c77

View File

@ -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);