Reported-by: Xiaoli Feng <xifeng@redhat.com>
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
        else if (tcon->ses->user_name)
                seq_show_option(s, "username", tcon->ses->user_name);
 
-       if (tcon->ses->domainName)
+       if (tcon->ses->domainName && tcon->ses->domainName[0] != 0)
                seq_show_option(s, "domain", tcon->ses->domainName);
 
        if (srcaddr->sa_family != AF_UNSPEC) {