Fix bug in array size calculation
authorKen Raeburn <raeburn@mit.edu>
Wed, 6 Aug 2008 15:47:24 +0000 (15:47 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 6 Aug 2008 15:47:24 +0000 (15:47 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20610 dc483132-0cff-0310-8789-dd5450dbe970

src/util/ss/request_tbl.c

index 46eb3a0ad7e795f2541dc755d0b6ecd0af998dfb..a214eb05d9e26494ecf57f9788617960c2adfb82 100644 (file)
@@ -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;