From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: "Gustavo F. Padovan" To: linux-bluetooth@vger.kernel.org Cc: "Gustavo F. Padovan" Subject: [PATCH 1/2] serial: fix DBus message reply Date: Tue, 13 Sep 2011 00:46:21 -0300 Message-Id: <1315885582-20027-1-git-send-email-padovan@profusion.mobi> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: "Gustavo F. Padovan" If reply is NULL we have a crash. --- serial/port.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/serial/port.c b/serial/port.c index d011084..2cdead4 100644 --- a/serial/port.c +++ b/serial/port.c @@ -369,7 +369,7 @@ static void get_record_cb(sdp_list_t *recs, int err, gpointer user_data) GError *gerr = NULL; if (!port->listener_id) { - reply = NULL; + reply = btd_error_failed(port->msg, "No listening application"); goto failed; } -- 1.7.6.2