You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2014/11/14 12:03:55 UTC

[46/50] [abbrv] qpid-proton git commit: PROTON-742: Windows SChannel buffer copy error: fix length

PROTON-742: Windows SChannel buffer copy error: fix length


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

Branch: refs/heads/examples
Commit: c5c1879fd7c1c762a929e25d8dc7e21ea89b63dc
Parents: cccd050
Author: Clifford Jansen <cl...@apache.org>
Authored: Thu Nov 13 15:45:17 2014 -0800
Committer: Clifford Jansen <cl...@apache.org>
Committed: Thu Nov 13 15:45:17 2014 -0800

----------------------------------------------------------------------
 proton-c/src/windows/schannel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/c5c1879f/proton-c/src/windows/schannel.c
----------------------------------------------------------------------
diff --git a/proton-c/src/windows/schannel.c b/proton-c/src/windows/schannel.c
index abf4b85..9437582 100644
--- a/proton-c/src/windows/schannel.c
+++ b/proton-c/src/windows/schannel.c
@@ -917,7 +917,7 @@ static void app_inbytes_progress(pn_ssl_t *ssl, size_t minimum)
       assert(ssl->app_inbytes.size <= ib2.size);
       size_t consumed = ib2.size - ssl->app_inbytes.size;
       if (consumed > 0) {
-          memmove((void *)ib2.start, ib2.start + consumed, consumed);
+        memmove((void *)ib2.start, ib2.start + consumed, ssl->app_inbytes.size);
         pn_buffer_trim(ssl->inbuf2, 0, consumed);
       }
       if (!pn_buffer_available(ssl->inbuf2)) {


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