(add_cred): add termination NULL pointer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5190 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -483,6 +483,7 @@ add_cred(krb5_context context, krb5_creds ***tgts, krb5_creds *tkt)
|
||||
return ENOMEM;
|
||||
*tgts = tmp;
|
||||
ret = krb5_copy_creds(context, tkt, &tmp[i]);
|
||||
tmp[i+1] = NULL;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user