aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpamc/include/security/pam_client.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpamc/include/security/pam_client.h b/libpamc/include/security/pam_client.h
index 4139d0ad..f382ac7f 100644
--- a/libpamc/include/security/pam_client.h
+++ b/libpamc/include/security/pam_client.h
@@ -118,7 +118,7 @@ do { \
if (cntrl) { \
uint32_t __size; \
\
- __size = PAM_BP_MIN_SIZE + data_length; \
+ __size = PAM_BP_MIN_SIZE + (data_length); \
if ((*(old_p) = PAM_BP_CALLOC(1, 1+__size))) { \
__PAM_BP_WOCTET(*(old_p), 3) = __size & 0xFF; \
__PAM_BP_WOCTET(*(old_p), 2) = (__size>>=8) & 0xFF; \
@@ -129,7 +129,7 @@ do { \
PAM_BP_ASSERT("out of memory for binary prompt"); \
} \
} else { \
- *old_p = NULL; \
+ *(old_p) = NULL; \
} \
} else { \
PAM_BP_ASSERT("programming error, invalid binary prompt pointer"); \