Blob Blame History Raw
diff --git a/common-src/krb5-security.c b/common-src/krb5-security.c
index 3f932ec..0c9258b 100644
--- a/common-src/krb5-security.c
+++ b/common-src/krb5-security.c
@@ -394,7 +394,10 @@ krb5_accept(
      *(making the userid equal to the dumpuser)
      */
     pw = getpwnam(CLIENT_LOGIN);
-    setreuid(pw->pw_uid, pw->pw_uid);
+    if (setreuid(pw->pw_uid, pw->pw_uid) == -1) {
+	g_critical("setreuid failed: %s", strerror(errno));
+	exit(1);
+    }
 }
 
 /*