core dump
Katsuhiro Kondou
Katsuhiro_Kondou at isc.org
Thu Aug 1 15:03:21 UTC 2002
In article <001001c2395c$5a53a1c0$4201800a at surnet.ru>,
"Pavel V. Knyazev" <pasha at surnet.ru> wrote;
} Not a problem at all.
} I have compiled it with -g -O flags.
Ah, thanks. I've got it. Try attached which should
work, and tell me how it's going on.
--
Katsuhiro Kondou
Index: nnrpd/post.h
===================================================================
RCS file: /home/kondou/news/inn/repository/inn/nnrpd/post.h,v
retrieving revision 1.1.1.1.6.1
diff -u -r1.1.1.1.6.1 post.h
--- nnrpd/post.h 14 Jul 2002 16:42:54 -0000 1.1.1.1.6.1
+++ nnrpd/post.h 1 Aug 2002 15:01:14 -0000
@@ -19,4 +19,10 @@
} HEADER;
#define HDR(_x) (Table[(_x)].Body)
-#define HDR_SET(_x, _y) Table[(_x)].Body = Table[(_x)].Value = _y ; Table[(_x)].Len = strlen(_y)
+#define HDR_SET(_x, _y) \
+ Table[(_x)].Body = Table[(_x)].Value = _y; \
+ if (_y == NULL) { \
+ Table[(_x)].Len = 0; \
+ } else { \
+ Table[(_x)].Len = strlen(_y); \
+ }
More information about the inn-workers
mailing list