Explorar o código

auth: proper fixup for optional method parameter in pv_www_authenticate()

- reported by Muhammad Shahzad
Daniel-Constantin Mierla %!s(int64=11) %!d(string=hai) anos
pai
achega
dd00819f7c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      modules/auth/auth_mod.c

+ 1 - 0
modules/auth/auth_mod.c

@@ -830,6 +830,7 @@ static int fixup_pv_auth(void **param, int param_no)
 	switch(param_no) {
 		case 1:
 		case 2:
+		case 4:
 			return fixup_var_pve_str_12(param, 1);
 		case 3:
 			return fixup_var_int_12(param, 1);