From cc7c91725f32e28353c343ea3e9195cbae7071f2 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Wed, 18 Oct 2006 02:38:01 +0000 Subject: [PATCH] Unsigned/signed warning fix git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18722 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/read_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/krb5/os/read_msg.c b/src/lib/krb5/os/read_msg.c index 776502c6d..77cda8032 100644 --- a/src/lib/krb5/os/read_msg.c +++ b/src/lib/krb5/os/read_msg.c @@ -50,7 +50,7 @@ krb5_read_message(krb5_context context, krb5_pointer fdp, krb5_data *inbuf) /* * We may want to include a sanity check here someday.... */ - if (!(buf = malloc(ilen))) { + if (!(buf = malloc(inbuf->length))) { return(ENOMEM); } if ((len2 = krb5_net_read(context, fd, buf, ilen)) != ilen) { -- 2.26.2