diff options
-rw-r--r-- | net/slirp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/slirp.c b/net/slirp.c index ce27eed..cce026b 100644 --- a/net/slirp.c +++ b/net/slirp.c @@ -550,7 +550,8 @@ static int slirp_smb(SlirpState* s, const char *exported_dir, snprintf(smb_cmdline, sizeof(smb_cmdline), "%s -s %s", CONFIG_SMBD_COMMAND, smb_conf); - if (slirp_add_exec(s->slirp, 0, smb_cmdline, &vserver_addr, 139) < 0) { + if (slirp_add_exec(s->slirp, 0, smb_cmdline, &vserver_addr, 139) < 0 || + slirp_add_exec(s->slirp, 0, smb_cmdline, &vserver_addr, 445) < 0) { slirp_smb_cleanup(s); error_report("conflicting/invalid smbserver address"); return -1; |