You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2016/04/05 21:25:45 UTC
qpid-dispatch git commit: DISPATCH-260: set default user name to
'anonymous'
Repository: qpid-dispatch
Updated Branches:
refs/heads/master 4df749549 -> f46b3afa9
DISPATCH-260: set default user name to 'anonymous'
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/f46b3afa
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/f46b3afa
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/f46b3afa
Branch: refs/heads/master
Commit: f46b3afa9ac4dcc217cc5dfd5a23163dcee79425
Parents: 4df7495
Author: Chuck Rolke <cr...@redhat.com>
Authored: Tue Apr 5 15:25:34 2016 -0400
Committer: Chuck Rolke <cr...@redhat.com>
Committed: Tue Apr 5 15:25:34 2016 -0400
----------------------------------------------------------------------
src/server.c | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/f46b3afa/src/server.c
----------------------------------------------------------------------
diff --git a/src/server.c b/src/server.c
index 30e57a8..9cd945c 100644
--- a/src/server.c
+++ b/src/server.c
@@ -61,6 +61,8 @@ const char CERT_FINGERPRINT_SHA256 = '2';
const char CERT_FINGERPRINT_SHA512 = '5';
char *COMPONENT_SEPARATOR = ";";
+const char *DEFAULT_USER_ID = "anonymous";
+
static qd_thread_t *thread(qd_server_t *qd_server, int id)
{
qd_thread_t *thread = NEW(qd_thread_t);
@@ -322,6 +324,8 @@ void qd_connection_set_user(qd_connection_t *conn)
conn->user_id = user_id;
}
}
+ if (!conn->user_id)
+ conn->user_id = DEFAULT_USER_ID;
}
qd_error_t qd_entity_refresh_connection(qd_entity_t* entity, void *impl)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org