You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jd...@apache.org on 2019/10/21 08:39:18 UTC

[qpid-proton] branch jdanekrh-patch-1 created (now fa33375)

This is an automated email from the ASF dual-hosted git repository.

jdanek pushed a change to branch jdanekrh-patch-1
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git.


      at fa33375  PROTON-2122: Increase hardcoded limit from 16 to 32 SASL mechanisms

This branch includes the following new commits:

     new fa33375  PROTON-2122: Increase hardcoded limit from 16 to 32 SASL mechanisms

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


[qpid-proton] 01/01: PROTON-2122: Increase hardcoded limit from 16 to 32 SASL mechanisms

Posted by jd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jdanek pushed a commit to branch jdanekrh-patch-1
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git

commit fa33375e1af01515bc357050cdcacfaaed585196
Author: Jiří Daněk <jd...@redhat.com>
AuthorDate: Mon Oct 21 10:38:59 2019 +0200

    PROTON-2122: Increase hardcoded limit from 16 to 32 SASL mechanisms
    
    Co-Authored-By: Roddie Kieley <rk...@apache.org>
---
 c/src/sasl/sasl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/c/src/sasl/sasl.c b/c/src/sasl/sasl.c
index 0cffce1..be040b8 100644
--- a/c/src/sasl/sasl.c
+++ b/c/src/sasl/sasl.c
@@ -471,8 +471,8 @@ static void pni_post_sasl_frame(pn_transport_t *transport)
       pni_emit(transport);
       break;
     case SASL_POSTED_MECHANISMS: {
-      // TODO: Hardcoded limit of 16 mechanisms
-      char *mechs[16];
+      // TODO(PROTON-2122) Replace magic number 32 with dynamically sized memory
+      char *mechs[32];
       char *mechlist = pn_strdup(pni_sasl_impl_list_mechs(transport));
 
       int count = 0;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org