r25258: Fix a panic message and remove superfluous return after the call to smb_panic().
authorMichael Adam <obnox@samba.org>
Thu, 20 Sep 2007 12:42:15 +0000 (12:42 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:30:55 +0000 (12:30 -0500)
Michael

source/lib/charcnv.c

index c3493dc9dcf3ce171d632f95da9268116b635651..f6b9e06ec20489e9c6d94f0a269a982b0300c8c8 100644 (file)
@@ -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)) {