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) {new:
goto lowMemory;
}
if (!allowRules && allowRulesTotal > 0 ) {old:
goto lowMemory;
}
if (!denyRules) {new:
goto lowMemory;
}
if (!denyRules && denyRulesTotal > 0) {
goto lowMemory;
}
Interesting is, why this was not a problem on e.g.: Solaris?

No comments:
Post a Comment