wireless: fix use-after-free bug
[project/netifd.git] / proto-static.c
index 86f2f20..77a536a 100644 (file)
@@ -33,7 +33,7 @@ struct static_proto_state {
 static bool
 static_proto_setup(struct static_proto_state *state)
 {
-       return proto_apply_ip_settings(state->proto.iface, state->config, false) == 0;
+       return proto_apply_static_ip_settings(state->proto.iface, state->config) == 0;
 }
 
 static int
@@ -54,6 +54,7 @@ static_handler(struct interface_proto_state *proto,
        case PROTO_CMD_TEARDOWN:
                break;
        }
+
        return ret;
 }