(doit2): check the return value from `doit2'

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3431 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-09-08 00:57:55 +00:00
parent d95c65dc43
commit 2bb9d92176

View File

@@ -71,7 +71,9 @@ doit2(HDB *db, hdb_entry *ent)
fprintf(stderr, "Please answer yes or no.\n");
}
if(buf[0] == 'y' || buf[0] == 'Y')
set_password (ent);
if(set_password (ent))
return;
set_modified_by (ent);
ret = db->store(context, db, 1, ent);