Commit a0352e56 authored by jehan's avatar jehan

make sure username is not empty before trying to marshal it

parent b5386945
......@@ -95,7 +95,7 @@ belle_sip_error_code belle_sip_uri_marshal(const belle_sip_uri_t* uri, char* buf
if (error!=BELLE_SIP_OK) return error;
if (uri->user) {
if (uri->user && uri->user[0]!='\0') {
char* escaped_username=belle_sip_uri_to_escaped_username(uri->user);
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