From 3a8727d3048ef726b9c797895d4528a2b47a670d Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 6 Aug 2008 15:47:24 +0000 Subject: [PATCH] Fix bug in array size calculation git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20610 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/ss/request_tbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.26.2