Skip to content

Commit

Permalink
fix(core): Improve status code when the client tries to use a securit…
Browse files Browse the repository at this point in the history
…y policy that is not available (open62541#6773)
  • Loading branch information
dismirlian authored Oct 17, 2024
1 parent 988fa7c commit cd0aa1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ua_securechannel.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ unpackPayloadOPN(UA_SecureChannel *channel, UA_Chunk *chunk, void *application)
if(!channel->securityPolicy) {
if(channel->processOPNHeader)
res = channel->processOPNHeader(application, channel, &asymHeader);
UA_CHECK_STATUS(res, goto error);
if(!channel->securityPolicy)
res = UA_STATUSCODE_BADINTERNALERROR;
UA_CHECK_STATUS(res, goto error);
Expand Down

0 comments on commit cd0aa1a

Please sign in to comment.