summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/nsswitch/pam_winbind.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c
index 5bd4ec3934..7010936b9b 100644
--- a/source3/nsswitch/pam_winbind.c
+++ b/source3/nsswitch/pam_winbind.c
@@ -35,14 +35,14 @@ static int _pam_get_data(const pam_handle_t *pamh,
/* some syslogging */
+#ifdef HAVE_PAM_VSYSLOG
static void _pam_log_int(const pam_handle_t *pamh, int err, const char *format, va_list args)
{
-
-#ifdef HAVE_PAM_VSYSLOG
pam_vsyslog(pamh, err, format, args);
+}
#else
- {
-
+static void _pam_log_int(const pam_handle_t *pamh, int err, const char *format, va_list args)
+{
char *format2 = NULL;
const char *service;
@@ -58,9 +58,8 @@ static void _pam_log_int(const pam_handle_t *pamh, int err, const char *format,
sprintf(format2, "%s(%s): %s", MODULE_NAME, service, format);
vsyslog(err, format2, args);
SAFE_FREE(format2);
- }
-#endif
}
+#endif /* HAVE_PAM_VSYSLOG */
static void _pam_log(const pam_handle_t *pamh, int ctrl, int err, const char *format, ...)
{