catch error from as.*printf
This commit is contained in:
@@ -155,7 +155,7 @@ OM_uint32 _gsskrb5_add_cred (
|
||||
|
||||
if (cred->ccache) {
|
||||
const char *type, *name;
|
||||
char *type_name;
|
||||
char *type_name = NULL;
|
||||
|
||||
ret = GSS_S_FAILURE;
|
||||
|
||||
@@ -187,8 +187,8 @@ OM_uint32 _gsskrb5_add_cred (
|
||||
goto failure;
|
||||
}
|
||||
|
||||
asprintf(&type_name, "%s:%s", type, name);
|
||||
if (type_name == NULL) {
|
||||
kret = asprintf(&type_name, "%s:%s", type, name);
|
||||
if (kret < 0 || type_name == NULL) {
|
||||
*minor_status = ENOMEM;
|
||||
goto failure;
|
||||
}
|
||||
|
Reference in New Issue
Block a user