From: "Gustavo F. Padovan" <padovan@xxxxxxxxxxxxxx> If reply is NULL we have a crash. --- serial/port.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/serial/port.c b/serial/port.c index d011084..a931ebd 100644 --- a/serial/port.c +++ b/serial/port.c @@ -368,10 +368,8 @@ static void get_record_cb(sdp_list_t *recs, int err, gpointer user_data) DBusMessage *reply; GError *gerr = NULL; - if (!port->listener_id) { - reply = NULL; - goto failed; - } + if (!port->listener_id) + return; if (err < 0) { error("Unable to get service record: %s (%d)", strerror(-err), -- 1.7.6.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html