(fkt_start_seq_get_int): check return value from krb5_storage_from_fd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15632 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -332,6 +332,12 @@ fkt_start_seq_get_int(krb5_context context,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
c->sp = krb5_storage_from_fd(c->fd);
|
c->sp = krb5_storage_from_fd(c->fd);
|
||||||
|
if (c->sp == NULL) {
|
||||||
|
_krb5_xunlock(context, c->fd);
|
||||||
|
close(c->fd);
|
||||||
|
krb5_set_error_string (context, "malloc: out of memory");
|
||||||
|
return ENOMEM;
|
||||||
|
}
|
||||||
krb5_storage_set_eof_code(c->sp, KRB5_KT_END);
|
krb5_storage_set_eof_code(c->sp, KRB5_KT_END);
|
||||||
ret = krb5_ret_int8(c->sp, &pvno);
|
ret = krb5_ret_int8(c->sp, &pvno);
|
||||||
if(ret) {
|
if(ret) {
|
||||||
|
Reference in New Issue
Block a user