(hdb_replace_extension): set error message on failure, not success.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17227 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -168,10 +168,10 @@ hdb_replace_extension(krb5_context context,
|
||||
|
||||
ret = copy_HDB_extension(ext,
|
||||
&entry->extensions->val[entry->extensions->len]);
|
||||
if (ret == 0) {
|
||||
if (ret == 0)
|
||||
entry->extensions->len++;
|
||||
else
|
||||
krb5_set_error_string(context, "hdb: failed to copy new extension");
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user