mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 08:30:11 +01:00
bluetooth: fix getting error code creating sdp-session in nm_bluez5_dun_connect()
This commit is contained in:
parent
25571bb639
commit
af277fdedc
1 changed files with 1 additions and 1 deletions
|
|
@ -353,8 +353,8 @@ nm_bluez5_dun_connect (NMBluez5DunContext *context,
|
|||
|
||||
context->sdp_session = sdp_connect (&context->src, &context->dst, SDP_NON_BLOCKING);
|
||||
if (!context->sdp_session) {
|
||||
int err = errno;
|
||||
GError *error;
|
||||
int err = sdp_get_error (context->sdp_session);
|
||||
|
||||
error = g_error_new (NM_BT_ERROR, NM_BT_ERROR_DUN_CONNECT_FAILED,
|
||||
"Failed to connect to the SDP server: (%d) %s",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue