You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2020/03/02 14:39:48 UTC
[qpid-proton] branch master updated: PROTON-2184: fix assert in
pn_session_set_context
This is an automated email from the ASF dual-hosted git repository.
kgiusti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/master by this push:
new db40d33 PROTON-2184: fix assert in pn_session_set_context
new 09a699a Merge pull request #230 from kgiusti/PROTON-2184
db40d33 is described below
commit db40d33305fa0989254c99b191afce5fd2113217
Author: Kenneth Giusti <kg...@apache.org>
AuthorDate: Wed Feb 26 13:29:27 2020 -0500
PROTON-2184: fix assert in pn_session_set_context
---
c/src/core/engine.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/c/src/core/engine.c b/c/src/core/engine.c
index c3a82ad..0e313b9 100644
--- a/c/src/core/engine.c
+++ b/c/src/core/engine.c
@@ -296,7 +296,7 @@ void *pn_session_get_context(pn_session_t *session)
void pn_session_set_context(pn_session_t *session, void *context)
{
- assert(context);
+ assert(session);
pn_record_set(session->context, PN_LEGCTX, context);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org