Sfoglia il codice sorgente

auth_radius: add NULL for ha1 parameter in auth_api.post_auth

auth api was updated to support Authentication-Info header and requires
now the ha1 value in post_auth. NULL is used (because I didn't find the ha1 value)
which makes that the new feature cannot be used with this module.
AndreasHuber-CH 9 anni fa
parent
commit
5ad94e15c2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      modules/auth_radius/authorize.c

+ 1 - 1
modules/auth_radius/authorize.c

@@ -172,7 +172,7 @@ static inline int authorize(struct sip_msg* _msg, pv_elem_t* _realm,
     }
 
     if (res == 1) {
-	switch(auth_api.post_auth(_msg, h)) {
+	switch(auth_api.post_auth(_msg, h, NULL)) {
 	default:
 	    BUG("unexpected reply '%d'.\n",
 		auth_api.pre_auth(_msg, &domain, _hftype, &h, NULL));