From 2649f6dc0df249999f9cbd857fe2e5396fe3dfc4 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Wed, 22 Jan 2014 18:03:58 +0200 Subject: [PATCH] android/pan: Fix possible NULL dereference It is better to return here since dev is not allocated and assigned NULL value. --- android/pan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/pan.c b/android/pan.c index 4e04da045..adc5df71a 100644 --- a/android/pan.c +++ b/android/pan.c @@ -439,7 +439,7 @@ static void nap_confirm_cb(GIOChannel *chan, gpointer data) if (err) { error("%s", err->message); g_error_free(err); - goto failed; + return; } DBG("incoming connect request from %s", address); -- 2.47.3