Commit be9e0f19 authored by Ian Goldberg's avatar Ian Goldberg
Browse files

Permit, but check, a NULL pointer passed to otrl_proto_instance()

Thanks to Paul Wouters <> for the report.
parent 64fb4349
......@@ -436,7 +436,7 @@ gcry_error_t otrl_proto_instance(const char *otrmsg,
unsigned char *bufp_head = NULL;
size_t lenp;
if (strncmp(otrtag, "?OTR:AAM", 8)) {
if (!otrtag || strncmp(otrtag, "?OTR:AAM", 8)) {
goto invval;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment