From 3f3f47b0bd8d089120d267cfad1976db95cd8ebe Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 22 Aug 1998 02:54:21 +0000 Subject: added ASSERT() and ASSERT_ARRAY() macros and sprinkled them liberally in the rpc code. (This used to be commit e6ce1c5b5a9f29d8fcbbd23019186ff5c600e795) --- source3/smbd/ipc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'source3/smbd/ipc.c') diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c index eb0abc37c0..46fb6a22ff 100644 --- a/source3/smbd/ipc.c +++ b/source3/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; -- cgit