net/filter-mirror: Fix mirror initial check typo
Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
7a25126d8a
commit
52cfcb4642
@ -198,7 +198,7 @@ static void filter_mirror_setup(NetFilterState *nf, Error **errp)
|
|||||||
MirrorState *s = FILTER_MIRROR(nf);
|
MirrorState *s = FILTER_MIRROR(nf);
|
||||||
|
|
||||||
if (!s->outdev) {
|
if (!s->outdev) {
|
||||||
error_setg(errp, "filter filter mirror needs 'outdev' "
|
error_setg(errp, "filter mirror needs 'outdev' "
|
||||||
"property set");
|
"property set");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -315,7 +315,7 @@ filter_mirror_set_outdev(Object *obj, const char *value, Error **errp)
|
|||||||
g_free(s->outdev);
|
g_free(s->outdev);
|
||||||
s->outdev = g_strdup(value);
|
s->outdev = g_strdup(value);
|
||||||
if (!s->outdev) {
|
if (!s->outdev) {
|
||||||
error_setg(errp, "filter filter mirror needs 'outdev' "
|
error_setg(errp, "filter mirror needs 'outdev' "
|
||||||
"property set");
|
"property set");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user