Commit e673eb2c authored by rswindell's avatar rswindell
Browse files

smb_hfield_add_netaddr():

Don't strip the "user@" portion of a *NETADDR header field if the specified net-type is NET_NONE.
parent e4a5afe2
......@@ -1269,7 +1269,7 @@ int SMBCALL smb_hfield_add_netaddr(smbmsg_t* msg, uint16_t type, const char* add
if(*net_type==NET_NONE)
return SMB_ERR_NOT_FOUND;
}
if(*net_type!=NET_INTERNET) { /* Only Internet net-addresses are allowed to have '@' in them */
if(*net_type!=NET_NONE && *net_type!=NET_INTERNET) { /* Only Internet net-addresses are allowed to have '@' in them */
const char* p = strchr(addr, '@');
if(p != NULL) {
p++;
......
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