check return value from changeuser

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4813 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1998-04-26 09:52:22 +00:00
parent cab46afc65
commit 34d2743a75

View File

@@ -207,7 +207,7 @@ pop_pass (POP *p)
/* Get information about the maildrop */
if (pop_dropinfo(p) != POP_SUCCESS) return(POP_FAILURE);
} else {
changeuser(p, pw);
if(changeuser(p, pw) != POP_SUCCESS) return POP_FAILURE;
if(pop_maildir_info(p) != POP_SUCCESS) return POP_FAILURE;
}
/* Initialize the last-message-accessed number */