better use safe_echo()

This commit is contained in:
Dirk Wetter 2022-12-26 16:14:26 +01:00
parent b633efae69
commit 336d3c947a

View File

@ -11456,12 +11456,12 @@ starttls_ldap_dialog() {
if [[ $DEBUG -ge 2 ]]; then if [[ $DEBUG -ge 2 ]]; then
msg_lenstr=$(hex2dec ${result:26:02}) msg_lenstr=$(hex2dec ${result:26:02})
msg_len=$((2 * msg_lenstr)) msg_len=$((2 * msg_lenstr))
echo "$debugpad $(hex2binary "${result:28:$msg_len}")" safe_echo "$debugpad $(hex2binary "${result:28:$msg_len}")"
fi ;; fi ;;
*) *)
ret=127 ret=127
if [[ $DEBUG -ge 2 ]]; then if [[ $DEBUG -ge 2 ]]; then
echo "$debugpad $(hex2dec "${result:28:2}")" safe_echo "$debugpad $(hex2dec "${result:28:2}")"
fi ;; fi ;;
esac esac
debugme echo "=== finished LDAP STARTTLS dialog with ${ret} ===" debugme echo "=== finished LDAP STARTTLS dialog with ${ret} ==="