diff options
author | Jakob Unterwurzacher | 2016-12-10 11:50:16 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-12-10 11:54:36 +0100 |
commit | c9f4400e6dc71a36df5dc9725f52a8968f5f9803 (patch) | |
tree | 601cff97e2f5d472a68e3a133da43237af032521 /internal/nametransform/pad16.go | |
parent | 6c86afb5cd63b099d1762da1a2ce3f76703dc4fb (diff) |
Replace all calls to naked panic() with log.Panic()
We want all panics to show up in the syslog.
Diffstat (limited to 'internal/nametransform/pad16.go')
-rw-r--r-- | internal/nametransform/pad16.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/nametransform/pad16.go b/internal/nametransform/pad16.go index e512828..2b30bcb 100644 --- a/internal/nametransform/pad16.go +++ b/internal/nametransform/pad16.go @@ -4,6 +4,7 @@ import ( "crypto/aes" "errors" "fmt" + "log" ) // pad16 - pad data to AES block size (=16 byte) using standard PKCS#7 padding @@ -11,7 +12,7 @@ import ( func pad16(orig []byte) (padded []byte) { oldLen := len(orig) if oldLen == 0 { - panic("Padding zero-length string makes no sense") + log.Panic("Padding zero-length string makes no sense") } padLen := aes.BlockSize - oldLen%aes.BlockSize if padLen == 0 { |