diff --git a/svr-auth.c b/svr-auth.c
index 7fb6568b115f6af79946a5546d6dc582227b7ba7..88909f3f2426adab6b24958eb0da50738cdcebe4 100644
--- a/svr-auth.c
+++ b/svr-auth.c
@@ -203,7 +203,7 @@ out:
 	m_free(methodname);
 }
 
-static int fill_passwd(const char* username) {
+static void fill_passwd(const char* username) {
 	struct passwd *pw = NULL;
 	if (ses.authstate.pw_name)
 		m_free(ses.authstate.pw_name);