*t = VLAN_DISABLED;
if (attr->first == NULL) {
- ret = ERR_INVARG;
+ ret = ERR_BADREPLY;
goto end;
}
at = attr->first->data;
filterAttributes(attr, ATTR_VLAN_PORT_CONF, ATTR_END);
if (attr->first == NULL) {
- ret = ERR_INVARG;
+ ret = ERR_BADREPLY;
goto end;
}
avc = at->data;
if (at->size < sizeof(struct attr_vlan_conf) + sa->ports) {
- ret = ERR_INVARG;
+ ret = ERR_BADREPLY;
goto end;
}
filterAttributes(conf_old, ATTR_VLAN_PORT_CONF, ATTR_END);
if (conf_old->first == NULL) {
- ret = ERR_INVARG;
+ ret = ERR_BADREPLY;
goto end;
}
avc_old = at->data;
if (at->size < sizeof(struct attr_vlan_conf) + sa->ports) {
- ret = ERR_INVARG;
+ ret = ERR_BADREPLY;
free(avc_new);
goto end;
}
filterAttributes(attr, ATTR_VLAN_DOT_CONF, ATTR_END);
if (attr->first == NULL) {
- ret = ERR_INVARG;
+ ret = ERR_BADREPLY;
goto end;
}
avc = at->data;
if (at->size < sizeof(struct attr_vlan_conf) + sa->ports) {
- ret = ERR_INVARG;
+ ret = ERR_BADREPLY;
goto end;
}
filterAttributes(attr, ATTR_VLAN_DOT_CONF, ATTR_END);
if (attr->first == NULL) {
- ret = ERR_INVARG;
+ ret = ERR_BADREPLY;
goto end;
}
avc = at->data;
if (at->size < sizeof(struct attr_vlan_conf) + sa->ports) {
- ret = ERR_INVARG;
+ ret = ERR_BADREPLY;
goto end;
}
/* check if the switch is in 802.1Q mode */
if (attr->first == NULL) {
- ret = ERR_INVARG;
+ ret = ERR_BADREPLY;
goto end;
} else {
at = attr->first->data;
if (at->size < sizeof(struct attr_vlan_conf) + sa->ports) {
- ret = ERR_INVARG;
+ ret = ERR_BADREPLY;
goto end;
}
}