Catch error from functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24835 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -937,6 +937,8 @@ krb5_425_conv_principal_ext2(krb5_context context,
|
|||||||
if(p){
|
if(p){
|
||||||
instance = p;
|
instance = p;
|
||||||
ret = krb5_make_principal(context, &pr, realm, name, instance, NULL);
|
ret = krb5_make_principal(context, &pr, realm, name, instance, NULL);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
if(func == NULL || (*func)(context, funcctx, pr)){
|
if(func == NULL || (*func)(context, funcctx, pr)){
|
||||||
*princ = pr;
|
*princ = pr;
|
||||||
return 0;
|
return 0;
|
||||||
@@ -1091,6 +1093,8 @@ no_host:
|
|||||||
name = p;
|
name = p;
|
||||||
|
|
||||||
ret = krb5_make_principal(context, &pr, realm, name, instance, NULL);
|
ret = krb5_make_principal(context, &pr, realm, name, instance, NULL);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
if(func == NULL || (*func)(context, funcctx, pr)){
|
if(func == NULL || (*func)(context, funcctx, pr)){
|
||||||
*princ = pr;
|
*princ = pr;
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user