summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/session.c b/session.c
index 4786afa..f045a36 100644
--- a/session.c
+++ b/session.c
@@ -426,7 +426,7 @@ char *suhosin_encrypt_string(char *str, int len, char *var, int vlen, char *key
426 } 426 }
427 427
428 /* store ip value */ 428 /* store ip value */
429 suhosin_get_ipv4(crypted+4 TSRMLS_CC); 429 suhosin_get_ipv4((char *)crypted+4 TSRMLS_CC);
430 430
431 /* store check value */ 431 /* store check value */
432 crypted[8] = check & 0xff; 432 crypted[8] = check & 0xff;
@@ -544,7 +544,7 @@ error_out:
544 if (check_ra > 4) { 544 if (check_ra > 4) {
545 check_ra = 4; 545 check_ra = 4;
546 } 546 }
547 suhosin_get_ipv4(&buf TSRMLS_CC); 547 suhosin_get_ipv4(&buf[0] TSRMLS_CC);
548 if (memcmp(buf, decrypted+4, check_ra) != 0) { 548 if (memcmp(buf, decrypted+4, check_ra) != 0) {
549 goto error_out; 549 goto error_out;
550 } 550 }