فهرست منبع

Resolves: bug 262021
Bug Description: Migration script does not migrate nsDS5ReplicaCredentials correctly.
Reviewed by: nhosoi (Thanks!)
Fix Description: This was a big endian vs. little endian issue. We only use name based UUID generation with the reversible password code. This code was not doing the ntoh with the numeric values generated. I'm sure there is probably a compiler warning about this on some platform.
Platforms tested: RHEL5 x86_64, Solaris 9 64-bit
Flag Day: no
Doc impact: no
QA impact: should be covered by regular nightly and manual testing
New Tests integrated into TET: none

Rich Megginson 18 سال پیش
والد
کامیت
912b102e56
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      ldap/servers/slapd/uuid.c

+ 3 - 3
ldap/servers/slapd/uuid.c

@@ -857,9 +857,9 @@ static void format_uuid_v3(guid_t * uuid, unsigned char hash[16])
 	memcpy(uuid, hash, sizeof(guid_t));
 
 	/* convert UUID to local byte order */
-	ntohl(uuid->time_low);
-	ntohs(uuid->time_mid);
-	ntohs(uuid->time_hi_and_version);
+	uuid->time_low = PR_ntohl(uuid->time_low);
+	uuid->time_mid = PR_ntohs(uuid->time_mid);
+	uuid->time_hi_and_version = PR_ntohs(uuid->time_hi_and_version);
 
 	/* put in the variant and version bits */
 	uuid->time_hi_and_version &= 0x0FFF;