From: Ken Raeburn Date: Wed, 6 Aug 2008 15:47:24 +0000 (+0000) Subject: Fix bug in array size calculation X-Git-Tag: krb5-1.7-alpha1~534 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3a8727d3048ef726b9c797895d4528a2b47a670d;p=krb5.git Fix bug in array size calculation git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20610 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/ss/request_tbl.c b/src/util/ss/request_tbl.c index 46eb3a0ad..a214eb05d 100644 --- a/src/util/ss/request_tbl.c +++ b/src/util/ss/request_tbl.c @@ -25,7 +25,7 @@ ss_add_request_table(sci_idx, rqtbl_ptr, position, code_ptr) /* size == C subscript of NULL == #elements */ size += 2; /* new element, and NULL */ info->rqt_tables = (ssrt **)realloc(info->rqt_tables, - size*sizeof(ssrt)); + size*sizeof(ssrt *)); if (info->rqt_tables == (ssrt **)NULL) { *code_ptr = errno; return;