summaryrefslogtreecommitdiffstats
path: root/source/smbd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-22 02:54:21 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-22 02:54:21 +0000
commite6ce1c5b5a9f29d8fcbbd23019186ff5c600e795 (patch)
treeb0c833b4bf82f6c71b4da2b216671599bdeb4be7 /source/smbd
parentbd9290c36c9993a994e485da0a81df926f8662e4 (diff)
downloadsamba-e6ce1c5b5a9f29d8fcbbd23019186ff5c600e795.tar.gz
samba-e6ce1c5b5a9f29d8fcbbd23019186ff5c600e795.tar.xz
samba-e6ce1c5b5a9f29d8fcbbd23019186ff5c600e795.zip
added ASSERT() and ASSERT_ARRAY() macros and sprinkled them liberally
in the rpc code.
Diffstat (limited to 'source/smbd')
-rw-r--r--source/smbd/ipc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source/smbd/ipc.c b/source/smbd/ipc.c
index eb0abc37c02..46fb6a22ff7 100644
--- a/source/smbd/ipc.c
+++ b/source/smbd/ipc.c
@@ -373,13 +373,7 @@ va_dcl
}
#if CHECK_TYPES
str = va_arg(args,char*);
- if (strncmp(str,p->curpos,strlen(str)) != 0) {
- DEBUG(2,("type error in package: %s instead of %*s\n",str,
- strlen(str),p->curpos));
- va_end(args);
- smb_panic("invalid types in ipc");
- return 0;
- }
+ ASSERT(strncmp(str,p->curpos,strlen(str)) == 0);
#endif
stringneeded = -1;