Ignore:
Timestamp:
Oct 27, 2010, 3:14:17 AM (14 years ago)
Author:
geofft
Message:
Backport harder
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/common/patches/389-sasl-io-4-bytes.patch

    r1705 r1706  
    7676     }
    7777-    if (ret == sizeof(buffer)) {
    78 -        /* Decode the length */
    79 -        packet_length = ntohl(*(uint32_t *)buffer);
     78-        /* Decode the length (could use ntohl here ??) */
     79-        packet_length = buffer[0] << 24 | buffer[1] << 16 | buffer[2] << 8 | buffer[3];
    8080-        /* add length itself (for Cyrus SASL library) */
    8181-        packet_length += 4;
Note: See TracChangeset for help on using the changeset viewer.