diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-01-22 18:03:58 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-01-22 17:33:23 +0100 |
commit | 2649f6dc0df249999f9cbd857fe2e5396fe3dfc4 (patch) | |
tree | c30cf0ec213f2ca791faef23150ee2846e7812bc /android/pan.c | |
parent | 98ab7a7a66d78a0b60f4b8ea23883647f97825f8 (diff) | |
download | bluez-2649f6dc0df249999f9cbd857fe2e5396fe3dfc4.tar.gz |
android/pan: Fix possible NULL dereference
It is better to return here since dev is not allocated and assigned NULL
value.
Diffstat (limited to 'android/pan.c')
-rw-r--r-- | android/pan.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |