[CalendarServer-changes] [1032] PyOpenDirectory/trunk/src/CDirectoryService.cpp

source_changes at macosforge.org source_changes at macosforge.org
Thu Jan 11 17:36:23 PST 2007


Revision: 1032
          http://trac.macosforge.org/projects/calendarserver/changeset/1032
Author:   cdaboo at apple.com
Date:     2007-01-11 17:36:23 -0800 (Thu, 11 Jan 2007)

Log Message:
-----------
Fix data buffer offset in digest auth.

Modified Paths:
--------------
    PyOpenDirectory/trunk/src/CDirectoryService.cpp

Modified: PyOpenDirectory/trunk/src/CDirectoryService.cpp
===================================================================
--- PyOpenDirectory/trunk/src/CDirectoryService.cpp	2007-01-12 00:44:01 UTC (rev 1031)
+++ PyOpenDirectory/trunk/src/CDirectoryService.cpp	2007-01-12 01:36:23 UTC (rev 1032)
@@ -629,12 +629,14 @@
 		aCurLength += sizeof(long);
 
 		::memcpy(&(authData->fBufferData[aCurLength]), challenge,  aTempLength);
+		aCurLength += aTempLength;
 		
 		aTempLength = ::strlen(response);
 		::memcpy(&(authData->fBufferData[aCurLength]), &aTempLength,  sizeof(long));
 		aCurLength += sizeof(long);
 
 		::memcpy(&(authData->fBufferData[aCurLength]), response,  aTempLength);
+		aCurLength += aTempLength;
 		
 		aTempLength = ::strlen(method);
 		::memcpy(&(authData->fBufferData[aCurLength]), &aTempLength,  sizeof(long));

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070111/2e739326/attachment.html


More information about the calendarserver-changes mailing list