always bail out if the fetch fails

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7340 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1999-11-09 18:09:26 +00:00
parent 644c2e2c24
commit a6d3f2b7e1

View File

@@ -60,7 +60,7 @@ kadm5_s_randkey_principal(void *server_handle,
if(ret) if(ret)
return ret; return ret;
ret = context->db->fetch(context->context, context->db, 0, &ent); ret = context->db->fetch(context->context, context->db, 0, &ent);
if(ret == HDB_ERR_NOENTRY) if(ret)
goto out; goto out;
ret = _kadm5_set_keys_randomly (context, ret = _kadm5_set_keys_randomly (context,