check return value, cid#62

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24143 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-12-11 05:07:04 +00:00
parent 8a54aaba59
commit f9120fced8

View File

@@ -678,6 +678,9 @@ addrport_print_addr (const krb5_address *addr, char *str, size_t len)
krb5_storage *sp; krb5_storage *sp;
sp = krb5_storage_from_data((krb5_data*)rk_UNCONST(&addr->address)); sp = krb5_storage_from_data((krb5_data*)rk_UNCONST(&addr->address));
if (sp == NULL)
return ENOMEM;
/* for totally obscure reasons, these are not in network byteorder */ /* for totally obscure reasons, these are not in network byteorder */
krb5_storage_set_byteorder(sp, KRB5_STORAGE_BYTEORDER_LE); krb5_storage_set_byteorder(sp, KRB5_STORAGE_BYTEORDER_LE);