Skip to content
Snippets Groups Projects
Commit e8e08393 authored by Richard T. Carback III's avatar Richard T. Carback III Committed by Benjamin Wenger
Browse files

Don't check key length here. We support any sizes of key right now.

parent 65b17871
Branches
Tags
No related merge requests found
......@@ -126,7 +126,7 @@ func parseGetKey(msg string) []byte {
return nil
}
keymat, err := base64.StdEncoding.DecodeString(resParts[2])
if err != nil || len(keymat) != 256 {
if err != nil || len(keymat)==0{
globals.Log.WARN.Printf("Couldn't decode GETKEY keymat: %s", msg)
return nil
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment