Commit 222ecf2e authored by Guillaume BIENKOWSKI's avatar Guillaume BIENKOWSKI

Better fix for empty password

parent b8ae429b
......@@ -395,9 +395,7 @@ authority_user : ( unreserved | escaped | user_unreserved )+ {
authority_password : ( unreserved | escaped | AND | EQUAL | PLUS | DOLLARD | COMMA )* {
char* unescaped_userpasswd;
const char* source = (const char*)$text->chars;
if( source == NULL ){
belle_generic_uri_set_user_password($authority_userinfo::current,"");
} else {
if( source != NULL ){
unescaped_userpasswd=belle_sip_to_unescaped_string((const char *)source);
belle_generic_uri_set_user_password($authority_userinfo::current,unescaped_userpasswd);
belle_sip_free(unescaped_userpasswd);
......@@ -1485,9 +1483,7 @@ user : ( unreserved | escaped | user_unreserved )+ {
password : ( unreserved | escaped |AND | EQUAL | PLUS | DOLLARD | COMMA )* {
char* unescaped_userpasswd;
const char* source = (const char*)$text->chars;
if( source == NULL ){
belle_sip_uri_set_user_password($userinfo::current,"");
} else {
if( source != NULL ){
unescaped_userpasswd=belle_sip_to_unescaped_string((const char *)source);
belle_sip_uri_set_user_password($userinfo::current,unescaped_userpasswd);
belle_sip_free(unescaped_userpasswd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment