connman: Fix crash in request_reply

This commit is contained in:
Guillaume Zajac 2011-07-29 14:49:56 +02:00 committed by Denis Kenzior
parent 446ee3443c
commit ae4ed8541c
1 changed files with 1 additions and 2 deletions

View File

@ -186,8 +186,7 @@ static void request_reply(DBusPendingCall *call, void *user_data)
if (reply == NULL) if (reply == NULL)
goto badreply; goto badreply;
if (parse_reply(dbus_pending_call_steal_reply(call), if (parse_reply(reply, &path, &pns) == FALSE)
&path, &pns) == FALSE)
goto error; goto error;
DBG("fd: %d, path: %s", pns.fd, path); DBG("fd: %d, path: %s", pns.fd, path);