Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8A87E200B5A for ; Thu, 4 Aug 2016 21:50:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 891A1160AAB; Thu, 4 Aug 2016 19:50:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D08F7160A6A for ; Thu, 4 Aug 2016 21:50:40 +0200 (CEST) Received: (qmail 56400 invoked by uid 500); 4 Aug 2016 19:50:40 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 56389 invoked by uid 99); 4 Aug 2016 19:50:40 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Aug 2016 19:50:40 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E857EE0A7D; Thu, 4 Aug 2016 19:50:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: gmurthy@apache.org To: commits@qpid.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: qpid-dispatch git commit: DISPATCH-414 - Additional fix. Missed out setting role in qd_user_fd() in server.c Date: Thu, 4 Aug 2016 19:50:39 +0000 (UTC) archived-at: Thu, 04 Aug 2016 19:50:41 -0000 Repository: qpid-dispatch Updated Branches: refs/heads/master bff877e1a -> 24297270b DISPATCH-414 - Additional fix. Missed out setting role in qd_user_fd() in server.c Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/24297270 Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/24297270 Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/24297270 Branch: refs/heads/master Commit: 24297270b8750657520bf447796a2c6453c19b07 Parents: bff877e Author: Ganesh Murthy Authored: Thu Aug 4 15:50:18 2016 -0400 Committer: Ganesh Murthy Committed: Thu Aug 4 15:50:18 2016 -0400 ---------------------------------------------------------------------- src/server.c | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/24297270/src/server.c ---------------------------------------------------------------------- diff --git a/src/server.c b/src/server.c index ee6f8b6..41bfa3f 100644 --- a/src/server.c +++ b/src/server.c @@ -1771,6 +1771,14 @@ qd_user_fd_t *qd_user_fd(qd_dispatch_t *qd, int fd, void *context) ctx->deferred_call_lock = sys_mutex(); ctx->event_stall = false; ctx->policy_counted = false; + ctx->role = 0; + + // Copy the role from the connector config + if (ctx->connector && ctx->connector->config) { + int role_length = strlen(ctx->connector->config->role) + 1; + ctx->role = (char*) malloc(role_length); + strcpy(ctx->role, ctx->connector->config->role); + } ufd->context = context; ufd->server = qd_server; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org For additional commands, e-mail: commits-help@qpid.apache.org