mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-25 04:50:37 +01:00
libnm: accept invalid connections in NMSecretAgentOld
When we receive a connection from NetworkManager it is not guaranteed that the connection verifies. For example, if the current libnm version is older then the NetworkManager version. Be more accepting and don't do any verification of the connection. This is a change in behavior in that we accept also invalid connections and pass them down to the sub-classes.
This commit is contained in:
parent
a37c1d1e17
commit
9a31bbcbc3
1 changed files with 2 additions and 1 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#include "nm-enum-types.h"
|
||||
#include "nm-dbus-helpers.h"
|
||||
#include "nm-simple-connection.h"
|
||||
#include "nm-core-internal.h"
|
||||
|
||||
#include "nmdbus-secret-agent.h"
|
||||
#include "nmdbus-agent-manager.h"
|
||||
|
|
@ -273,7 +274,7 @@ verify_request (NMSecretAgentOld *self,
|
|||
|
||||
/* Make sure the given connection is valid */
|
||||
g_assert (out_connection);
|
||||
connection = nm_simple_connection_new_from_dbus (connection_dict, &local);
|
||||
connection = _nm_simple_connection_new_from_dbus (connection_dict, NM_SETTING_PARSE_FLAGS_BEST_EFFORT, &local);
|
||||
if (connection) {
|
||||
nm_connection_set_path (connection, connection_path);
|
||||
*out_connection = connection;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue