heimdal: update to lorikeet-heimdal rev 801
[amitay/samba.git] / source4 / heimdal / lib / krb5 / data.c
index eda1a8b2598b710d24757f278d317f9c588171a9..2b78bfb32b42ebfc18f1f35ba169c7c4b51fec98 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "krb5_locl.h"
 
-RCSID("$Id: data.c 22064 2007-11-11 16:28:14Z lha $");
+RCSID("$Id: data.c 23280 2008-06-23 03:26:18Z lha $");
 
 /**
  * Reset the (potentially uninitalized) krb5_data structure.
@@ -192,7 +192,7 @@ krb5_copy_data(krb5_context context,
     krb5_error_code ret;
     ALLOC(*outdata, 1);
     if(*outdata == NULL) {
-       krb5_set_error_string(context, "malloc: out of memory");
+       krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
        return ENOMEM;
     }
     ret = der_copy_octet_string(indata, *outdata);