>>>>> "TA" == Thomas Anders <tanders@...> writes:
I don't think this is the right solution. It may be half of a right
solution, but as is you're mallocing a long and then declaring the
size to be sizeof(in_addr_t). If the sizeof is < or = to the size of
a long, it'll maybe work fine. However, if the sizeof is > the size
of a long then you'll end up overwriting memory. The chance of that
happening on any system I know of: none. However, it doesn't look or
seem wise none the less.
vars->val.integer = (long *)malloc(sizeof(long));
vars->val.integer = (long *)malloc(sizeof(in_addr_t));
Is probably the safest thing to do in order to fix the problem.