Rafael H. Schloming created PROTON-879:
------------------------------------------

             Summary: null initial response makes cyrus challenge when it 
probably shouldn't
                 Key: PROTON-879
                 URL: https://issues.apache.org/jira/browse/PROTON-879
             Project: Qpid Proton
          Issue Type: Bug
          Components: proton-c
            Reporter: Rafael H. Schloming
            Assignee: Andrew Stitcher
             Fix For: 0.10


diff --git a/proton-c/src/sasl/cyrus_sasl.c b/proton-c/src/sasl/cyrus_sasl.c
index 58d6c9b..a990d61 100644
--- a/proton-c/src/sasl/cyrus_sasl.c
+++ b/proton-c/src/sasl/cyrus_sasl.c
@@ -738,6 +738,7 @@ int pn_do_init(pn_transport_t *transport, uint8_t 
frame_type, uint16_
   int err = pn_data_scan(args, "D.[sz]", &mech, &recv);
   if (err) return err;
   sasl->selected_mechanism = pn_strndup(mech.start, mech.size);
+  if (!recv.start) { recv.start = ""; }
 
   pni_process_init(transport, sasl->selected_mechanism, &recv);
 




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to