]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/9pfs/9p.c
9pfs: allocate space for guest originated empty strings
[mirror_qemu.git] / hw / 9pfs / 9p.c
index 119ee584969bf9bf3f5b9370edf39cdfa4b5fa66..39a7e1d52d2aa36f5ef66a05676906331a4ec624 100644 (file)
@@ -3174,7 +3174,7 @@ static void v9fs_xattrwalk(void *opaque)
         goto out;
     }
     v9fs_path_copy(&xattr_fidp->path, &file_fidp->path);
-    if (name.data == NULL) {
+    if (!v9fs_string_size(&name)) {
         /*
          * listxattr request. Get the size first
          */