The unified diff between revisions [0b5c2644..] and [d972b440..] is displayed below. It can also be downloaded as a raw diff.
#
#
# patch "src/wccp2.c"
# from [d0cf73950338967c508af753697bdbc1ac8c48fe]
# to [098a6bd9fb96207b1bc91b723dfeb517ad2559dd]
#
============================================================
--- src/wccp2.c d0cf73950338967c508af753697bdbc1ac8c48fe
+++ src/wccp2.c 098a6bd9fb96207b1bc91b723dfeb517ad2559dd
@@ -397,10 +397,9 @@ wccp2_update_md5_security(char *password
bzero(pwd, sizeof(pwd));
strncpy(pwd, password, sizeof(pwd));
ws = (struct wccp2_security_md5_t *) ptr;
- assert(ws->security_type == WCCP2_SECURITY_INFO);
+ assert(ntohs(ws->security_type) == WCCP2_SECURITY_INFO);
/* Its the security part */
- /* XXX shouldn't this be ntohl() ? */
- if (htonl(ws->security_option) != WCCP2_MD5_SECURITY) {
+ if (ntohl(ws->security_option) != WCCP2_MD5_SECURITY) {
debug(80, 5) ("wccp2_update_md5_security: this service ain't md5'ing, abort\n");
return 0;
}