rinetd on AIX can not start

if (!allowRules && allowRulesTotal > 0 ) {
                goto lowMemory;
        }
I've tried to compile rinetd on AIX 6.1 with gcc.

For the compilation the local getopt.c must be compiled and the header file
in rinetd.c must be #include "getopt.h" and all object files including getopt.o must be linked.

But starting the rinted issued the following error:

rinetd: not enough memory to start rinetd

After some looking around, in the source code, I found the problem.

I do not have any allow or deny rules in the rinetd.conf and therefore
the malloc resulted in a NULL Pointer which branched to the lowMemory mark.

old:
if (!allowRules) {
                goto lowMemory;
        }
new:

if (!allowRules && allowRulesTotal > 0 ) {
                goto lowMemory;
        }
old:
if (!denyRules) {
                goto lowMemory;
        }
new:

if (!denyRules && denyRulesTotal > 0) {
                goto lowMemory;
        }

Interesting is, why this was not a problem on e.g.: Solaris?