bacula/bacula-7.0.3-seg-fault.patch
2014-05-15 16:02:42 +02:00

22 lines
622 B
Diff

diff -Naur bacula-7.0.3.old/src/lib/message.c bacula-7.0.3/src/lib/message.c
--- bacula-7.0.3.old/src/lib/message.c 2014-05-15 15:45:13.744148767 +0200
+++ bacula-7.0.3/src/lib/message.c 2014-05-15 15:51:08.911250228 +0200
@@ -25,6 +25,7 @@
*
*/
+#include <assert.h>
#include "bacula.h"
#include "jcr.h"
@@ -1322,7 +1323,8 @@
if (type == M_ABORT) {
char *p = 0;
- p[0] = 0; /* generate segmentation violation */
+ //p[0] = 0; /* generate segmentation violation */
+ assert(p!=NULL);
}
if (type == M_ERROR_TERM) {
exit(1);