From e74769f4a43b047193d457232c9c82530068658d Mon Sep 17 00:00:00 2001 From: Christian Göttsche Date: Thu, 22 Feb 2024 17:04:08 +0100 Subject: libpamc: enclose macro parameter --- libpamc/include/security/pam_client.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpamc') 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"); \ -- cgit v1.2.3