Return the correct values

This commit is contained in:
Miek Gieben 2012-12-13 10:47:33 +01:00
parent 623de14ebb
commit 0c7712073a
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ func tsigKeyParse(s string) (algo, name, secret string, ok bool) {
case 3:
switch s1[0] {
case "hmac-md5":
return "hmac-md5.sig-alg.reg.int.", s1[0], s1[1], true
return "hmac-md5.sig-alg.reg.int.", s1[1], s1[2], true
case "hmac-sha1":
return "hmac-sha1.", s1[1], s1[2], true
case "hmac-sha256":