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

rkieley 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 76f7f9e  PROTON-2122: Increase hardcoded limit from 16 to 32 SASL 
mechanisms
76f7f9e is described below

commit 76f7f9ea219b315845f12ce1df7773ba1ab46a74
Author: Jiří Daněk <[email protected]>
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 <[email protected]>
---
 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to