X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=util%2Fpasswddb.c;h=b8ac8d8f07465b31b916d0e3c754af4f8eb5505d;hp=f3113be09c5026933b89f6ae79960c5328d32238;hb=aeea139423b8eaf28a4de53b3d7b2ad1f22284e7;hpb=0052fb5520062c328006dc3537f39d28e88f3579 diff --git a/util/passwddb.c b/util/passwddb.c index f3113be..b8ac8d8 100644 --- a/util/passwddb.c +++ b/util/passwddb.c @@ -57,7 +57,7 @@ Passwd_db passwd_db_open (void) } static int get_entry (const char **p, char *dst, int max) -{ +{ int i = 0; while ((*p)[i] != ':' && (*p)[i]) i++; @@ -109,7 +109,7 @@ void passwd_db_close(Passwd_db db) while (pe) { struct passwd_entry *pe_next = pe->next; - + xfree (pe->name); xfree (pe->des); xfree (pe); @@ -166,7 +166,7 @@ int passwd_db_auth(Passwd_db db, const char *user, const char *pass) if (strcmp (pe->des, pass)) return -2; } - return 0; + return 0; } int passwd_db_file_crypt(Passwd_db db, const char *fname)