1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

fix segfault

This commit is contained in:
Gerald Carter 0001-01-01 00:00:00 +00:00
parent ff4b2411d1
commit 36bcb312e9

View File

@ -147,7 +147,9 @@ DATA_BLOB krb5_get_ticket(char *principal, time_t time_offset)
return ret;
failed:
krb5_free_context(context);
if ( context )
krb5_free_context(context);
return data_blob(NULL, 0);
}