samba36: fix segmentation fault when trying to add non-existent users
[openwrt.git] / package / network / services / samba36 / patches / 111-owrt_smbpasswd.patch
index 25a9cb9..7d852c4 100644 (file)
 +      }
 +
 +      if (!find_passwd_line(fp, user, &p1)) {
-+              printf("User %s not found or invalid in /etc/passwd\n");
++              printf("User %s not found or invalid in /etc/passwd\n", user);
 +              goto out;
 +      }
 +