From ef65e9417606781bf4c33e63e9f16cca68b81737 Mon Sep 17 00:00:00 2001 From: Martin Xu Date: Tue, 9 Feb 2010 10:29:52 +0100 Subject: [PATCH] Remove wrong unref of sevice->pending When setting static ip for ethernet service, unreferencing service->pending here will cause a segmentation fault. The reason is that it is done in __connman_service_indicate_state() when connection succeeds, and service->pending is NULL. --- src/service.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/service.c b/src/service.c index eb1402a7..8f52fc05 100644 --- a/src/service.c +++ b/src/service.c @@ -1062,9 +1062,6 @@ static DBusMessage *connect_service(DBusConnection *conn, return NULL; } - dbus_message_unref(service->pending); - service->pending = NULL; - return g_dbus_create_reply(msg, DBUS_TYPE_INVALID); } -- 2.34.1