mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
bhyve: fix regression in legacy virtio-9p config parsing
Commit 621b509048 introduced a regression
in legacy virtio-9p config parsing by not initializing *sharename to
NULL. As a result, "sharename != NULL" check in the first iteration fails
and bhyve exits with "virtio-9p: more than one share name given".
Fix by adding NULL back.
Approved by: grehan
This commit is contained in:
parent
9f2eeb0262
commit
f2ecc0d1b7
1 changed files with 1 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ pci_vt9p_notify(void *vsc, struct vqueue_info *vq)
|
|||
static int
|
||||
pci_vt9p_legacy_config(nvlist_t *nvl, const char *opts)
|
||||
{
|
||||
char *sharename, *tofree, *token, *tokens;
|
||||
char *sharename = NULL, *tofree, *token, *tokens;
|
||||
|
||||
if (opts == NULL)
|
||||
return (0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue