Deactivate session-id check
This commit is contained in:
parent
d40cfdce8f
commit
322e00cfe2
1 changed files with 2 additions and 1 deletions
|
|
@ -1576,7 +1576,6 @@ from_client_msg(clixon_handle h,
|
||||||
yang_stmt *ymod;
|
yang_stmt *ymod;
|
||||||
cxobj *xnacm = NULL;
|
cxobj *xnacm = NULL;
|
||||||
cxobj *xret = NULL;
|
cxobj *xret = NULL;
|
||||||
uint32_t op_id = 0; /* XXX session number from internal NETCONF protocol */
|
|
||||||
enum nacm_credentials_t creds;
|
enum nacm_credentials_t creds;
|
||||||
char *rpcname;
|
char *rpcname;
|
||||||
char *rpcprefix;
|
char *rpcprefix;
|
||||||
|
|
@ -1624,6 +1623,7 @@ from_client_msg(clixon_handle h,
|
||||||
}
|
}
|
||||||
rpcname = xml_name(x);
|
rpcname = xml_name(x);
|
||||||
rpcprefix = xml_prefix(x);
|
rpcprefix = xml_prefix(x);
|
||||||
|
#ifdef NOTACTIVE /* May need to re-activate */
|
||||||
/* Sanity check:
|
/* Sanity check:
|
||||||
* op_id from internal message can be out-of-sync from client's sessions-id for the following reasons:
|
* op_id from internal message can be out-of-sync from client's sessions-id for the following reasons:
|
||||||
* 1. Its a hello when the client starts with op_id=0 to get its proper id on hello reply
|
* 1. Its a hello when the client starts with op_id=0 to get its proper id on hello reply
|
||||||
|
|
@ -1644,6 +1644,7 @@ from_client_msg(clixon_handle h,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
/* Note that this validation is also made in xml_yang_validate_rpc, but not for hello
|
/* Note that this validation is also made in xml_yang_validate_rpc, but not for hello
|
||||||
*/
|
*/
|
||||||
if (xml2ns(x, rpcprefix, &namespace) < 0)
|
if (xml2ns(x, rpcprefix, &namespace) < 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue