Page 1 of 1

[Nagios-devel] [NSCA] Fix for send_nsca segfault

Posted: Thu Feb 02, 2006 10:06 am
by Guest
--mP3DRpeJDSE+ciuQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

When using encryption, the send_nsca client from the NSCA 2.5 release
segfaults in src/utils.c:encrypt_cleanup() after sending the data. The
problem is that encrypt_cleanup() tries to free(3) string constants.
The attached patch removes the offending statements.

Holger

--
PGP fingerprint: F1F0 9071 8084 A426 DD59 9839 59D3 F3A1 B8B5 D3DE

--mP3DRpeJDSE+ciuQ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="nsca-free.diff"

diff -Naur nsca-2.5.orig/src/utils.c nsca-2.5/src/utils.c
--- nsca-2.5.orig/src/utils.c 2003-10-25 01:55:40.000000000 +0200
+++ nsca-2.5/src/utils.c 2006-02-02 18:43:45.282958991 +0100
@@ -258,10 +258,6 @@
CI->key=NULL;
free(CI->IV);
CI->IV=NULL;
- free(CI->mcrypt_algorithm);
- CI->mcrypt_algorithm=NULL;
- free(CI->mcrypt_mode);
- CI->mcrypt_mode=NULL;
}
#endif


--mP3DRpeJDSE+ciuQ--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]