diff options
Diffstat (limited to 'hicn-light/src')
-rw-r--r-- | hicn-light/src/hicn/core/connection.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hicn-light/src/hicn/core/connection.c b/hicn-light/src/hicn/core/connection.c index fb43d4a1e..6295d08df 100644 --- a/hicn-light/src/hicn/core/connection.c +++ b/hicn-light/src/hicn/core/connection.c @@ -327,6 +327,8 @@ void connection_SetAdminState(Connection *conn, connection_state_t admin_state) parcAssertNotNull(conn, "Parameter conn must be non-null"); if (!conn->ops) return; + if ((admin_state != CONNECTION_STATE_UP) && (admin_state != CONNECTION_STATE_DOWN)) + return; ioOperations_SetAdminState(conn->ops, admin_state); } |