Skip to contentSkip to conversation

SIGSEGV in resolving hostname

DISCUSSION Morten K. Poulsen 1 participant 1 message Dec 6, 2006

lore
Share & tools
lore
#0 lore raw

Hi Benoit,

Quoted 4 lines · Benoit DOLEZ

When there is not reverse for the hostname, the gethostbyname return NULL. There is no check of the return value in the function hostnamestr() (strgen:144). Because of the SIGSEGV generated, the normal might not working.

Thanks for your patch.

I've moved the code into hostnamestr() and used the opportunity to remove the static buffer from the function.

The patch, with my changes, is available here:

http://mlmmj.mmj.dk/~mortenp/patch-mlmmj-1.2.12-hostnamestr.diff

It will be included in the next release of mlmmj.

Morten

Signature · 2 lines
Morten K. Poulsen <[email protected]>
http://www.afdelingp.dk/