[Nagios-devel] NdoUtils 1.4b8 : LONG_OUTPUT bug
-
Guest
[Nagios-devel] NdoUtils 1.4b8 : LONG_OUTPUT bug
--=-3EOHs7vX3+pFl14TJML6
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hi,
ndo2db child die with Nagios 3x :
in dbhandlers.c :
null pointer exception on asprintf()
es[x] is null in :
ndo2db_handle_hostcheckdata()
ndo2db_handle_servicecheckdata()
( where es[x] is the LONG_OUTPUT char* )
The problem comes from ndomod.c, I join a diff file for the corrections.
NB :The corrections after line 2760 are not related , there is just
another bad copy/paste there, which have no effect.
Greetings.
--=-3EOHs7vX3+pFl14TJML6
Content-Disposition: attachment; filename="ndomod.c.diff"
Content-Type: text/x-patch; name="ndomod.c.diff"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
#diff original/src/ndomod.c corrected/src/ndomod.c
1743c1743
,NDO_DATA_LONGOUTPUT
1818c1818
,NDO_DATA_LONGOUTPUT
2760,2764c2760,2762
output);
ack_author);
ack_data);
contact_name);
---
> es[4]=ndo_escape_buffer(cnotdata->ack_author);
> es[5]=ndo_escape_buffer(cnotdata->ack_data);
> es[6]=ndo_escape_buffer(cnotdata->contact_name);
2791c2789
,(es[6]==NULL)?"":es[6]
2800,2801d2797
,(es[4]==NULL)?"":es[4]
2805c2801
,(es[5]==NULL)?"":es[5]
--=-3EOHs7vX3+pFl14TJML6--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]