29 lines
828 B
Diff
29 lines
828 B
Diff
From 1ade162b7773ffd3a1c83ad9f4ce529ac69d619c Mon Sep 17 00:00:00 2001
|
|
From: Stefan Radu <stefan270101@gmail.com>
|
|
Date: Tue, 25 Apr 2023 15:00:36 +0300
|
|
Subject: [PATCH] add return in supam_conv function
|
|
|
|
Added return statement to ensure that all execution paths end with a
|
|
return statement.
|
|
|
|
Signed-off-by: Stefan Radu <stefan270101@gmail.com>
|
|
---
|
|
login-utils/su-common.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/login-utils/su-common.c b/login-utils/su-common.c
|
|
index 4b284995e..67c4fa271 100644
|
|
--- a/login-utils/su-common.c
|
|
+++ b/login-utils/su-common.c
|
|
@@ -344,6 +344,7 @@ static int supam_conv( int num_msg,
|
|
#elif defined(HAVE_SECURITY_OPENPAM_H)
|
|
return openpam_ttyconv(num_msg, msg, resp, data);
|
|
#endif
|
|
+ return PAM_CONV_ERR;
|
|
}
|
|
|
|
static void supam_cleanup(struct su_context *su, int retcode)
|
|
--
|
|
2.27.0
|
|
|