[NSCA] Fix for send_nsca segfault
Holger Weiss
holger at CIS.FU-Berlin.DE
Thu Feb 2 19:06:38 CET 2006
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
-------------- next part --------------
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
More information about the Developers
mailing list