Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 66ac8672f -> 3e7ed2a7f


DISPATCH-729 - Fixed a bug in the password string loading.


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/3e7ed2a7
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/3e7ed2a7
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/3e7ed2a7

Branch: refs/heads/master
Commit: 3e7ed2a7fbf0bdb4b0959c4cef818c49cbe46217
Parents: 66ac867
Author: Ted Ross <[email protected]>
Authored: Wed Mar 22 17:00:48 2017 -0400
Committer: Ted Ross <[email protected]>
Committed: Wed Mar 22 17:00:48 2017 -0400

----------------------------------------------------------------------
 src/connection_manager.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/3e7ed2a7/src/connection_manager.c
----------------------------------------------------------------------
diff --git a/src/connection_manager.c b/src/connection_manager.c
index be406d6..a6f0765 100644
--- a/src/connection_manager.c
+++ b/src/connection_manager.c
@@ -440,15 +440,15 @@ qd_config_ssl_profile_t 
*qd_dispatch_configure_ssl_profile(qd_dispatch_t *qd, qd
                 int c;
                 int i=0;
 
-                while(true) {
+                while (i < 200 - 1) {
                     c = fgetc(file);
-                    if(c == EOF || c == '\n')
+                    if (c == EOF || c == '\n')
                         break;
                     buffer[i++] = c;
                 }
 
                 if (i != 0) {
-                    buffer[++i] = '\0';
+                    buffer[i] = '\0';
                     free(ssl_profile->ssl_password);
                     ssl_profile->ssl_password = strdup(buffer);
                 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to