]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/cifs/connect.c
[CIFS] fix oops on second mount to same server when null auth is used
[linux-2.6-omap-h63xx.git] / fs / cifs / connect.c
index 380ee9991f204f3b827df31410fe9859be9753ea..1102160f6661069e725345642f4af2c7439fe6fa 100644 (file)
@@ -1790,7 +1790,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
 
        if (volume_info.nullauth) {
                cFYI(1, ("null user"));
-               volume_info.username = NULL;
+               volume_info.username = "";
        } else if (volume_info.username) {
                /* BB fixme parse for domain name here */
                cFYI(1, ("Username: %s", volume_info.username));