mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
lib/util/charset: fix conversion failure logging
Move catch-all debug statement with loglevel 0 from behind the switch clause into the switch clause as default case. Fixes an issue that resulted in the log being flooded with level 0 messages in case someone put a file with an illegal UTF8 encoding (eg '\xA0test') on the server. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
b26a1449a0
commit
1c60dc5c32
@ -434,8 +434,10 @@ bool convert_string_talloc_handle(TALLOC_CTX *ctx, struct smb_iconv_handle *ic,
|
|||||||
reason="Illegal multibyte sequence";
|
reason="Illegal multibyte sequence";
|
||||||
DEBUG(3,("convert_string_talloc: Conversion error: %s(%s)\n",reason,inbuf));
|
DEBUG(3,("convert_string_talloc: Conversion error: %s(%s)\n",reason,inbuf));
|
||||||
break;
|
break;
|
||||||
}
|
default:
|
||||||
DEBUG(0,("Conversion error: %s(%s)\n",reason,inbuf));
|
DEBUG(0,("Conversion error: %s(%s)\n",reason,inbuf));
|
||||||
|
break;
|
||||||
|
}
|
||||||
/* smb_panic(reason); */
|
/* smb_panic(reason); */
|
||||||
TALLOC_FREE(ob);
|
TALLOC_FREE(ob);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user