Comment Comment by mynameisbahaa I think the programmer should have supplied the length of the "computed_hash" not the "response" which as I understood supplied by the user. Like this : strncmp(computed_hash, response, computed_hash_length) parent mynameisbahaa 9 years ago