This is a multi-part message in MIME format.
------------7NhE3WuB9OnU6N9D2A0R5Y7
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C56840.3F31B006"
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C56840.3F31B006
Content-Type: text/plain; charset="iso-8859-1"
At the end of 'add_contact' in common/objects.c, the 'DEBUG1' block contains
a printf with %s format for new_contact->email and new_contact->pager. But
one of these values can be a null pointer. I don't know how your printf
understands null pointers but mine (solaris) does not support them and
crashes with a Seg fault.
The code could be for these two lines :
printf("\tContact Email Address: %s\n",(new_contact->email ?
new_contact->email : ""));
printf("\tContact Pager Number: %s\n",(new_contact->pager ?
new_contact->pager : ""));
------_=_NextPart_001_01C56840.3F31B006
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: Quoted-Printable
Bug in debug code
At the end of 'add_contact' in common/objects.c, the 'DEB=
UG1' block contains a printf with %s format for new_contact->email and n=
ew_contact->pager. But one of these values can be a null pointer. I don'=
t know how your printf understands null pointers but mine (solaris) does no=
t support them and crashes with a Seg fault.
The code could be for these two lines :
printf("\tContact Email Address: %s\n",(new_con=
tact->email ? new_contact->email : "<null>"));=
printf("\tContact Pager Number: %s\n",(new_con=
tact->pager ? new_contact->pager : "<null>"));=
------_=_NextPart_001_01C56840.3F31B006--
------------7NhE3WuB9OnU6N9D2A0R5Y7
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: Quoted-Printable
Ce message et ses pi=E8ces jointes (le "message") est destin=E9 =E0 l'usage=
=20
exclusif de son destinataire. =20
Si vous recevez ce message par erreur, merci d'en aviser imm=E9diatement =
l'exp=E9diteur et de le d=E9truire ensuite. Le pr=E9sent message pouvant =
=20
=EAtre alt=E9r=E9 =E0 notre insu, CALYON Corporate and Investment Bank =
=20
ne peut pas =EAtre engag=E9 par son contenu. Tous droits r=E9serv=E9s.=20
=20
This message and/or any attachments (the "message") is intended for =20
the sole use of its addressee. =20
If you are not the addressee, please immediately notify the sender and =20
then destroy the message. As this message and/or any attachments may=20
have been altered without our knowledge, its content is not legally=20
binding on CALYON Corporate and Investment Bank. All rights reserved. =
=20
------------7NhE3WuB9OnU6N9D2A0R5Y7--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]