Do not invoke DoS for non-canonical sigs
Merge pull request #2540 from sipa/nodosnocan

Do not invoke DoS for non-canonical sigs