From 2bb7ebdcb737fa621f8935680d28504f1ea38252 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 20 Sep 2007 12:42:15 +0000 Subject: r25258: Fix a panic message and remove superfluous return after the call to smb_panic(). Michael (This used to be commit 8b5c34b7d141c44d65622f44f9432723230cea47) --- source3/lib/charcnv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c index c3493dc9dc..f6b9e06ec2 100644 --- a/source3/lib/charcnv.c +++ b/source3/lib/charcnv.c @@ -1409,8 +1409,7 @@ size_t pull_ucs2(const void *base_ptr, char *dest, const void *src, size_t dest_ if (dest_len == (size_t)-1) { /* No longer allow dest_len of -1. */ - smb_panic("push_utf8 - invalid dest_len of -1"); - return 0; + smb_panic("pull_ucs2 - invalid dest_len of -1"); } if (ucs2_align(base_ptr, src, flags)) { -- cgit