aboutsummaryrefslogtreecommitdiff
path: root/lib/identity/definitions/request_email_validation.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-03-04 14:25:21 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-03-04 14:29:12 +0100
commit6dc8bc05a95324de512ef7999b47507e712ccb76 (patch)
treedb2ba277d67fff1b7a2968df853bae5e01ae7f3c /lib/identity/definitions/request_email_validation.h
parentb5b2d95ce2c8cf164177a86d6293809ff049ca0a (diff)
downloadlibquotient-6dc8bc05a95324de512ef7999b47507e712ccb76.tar.gz
libquotient-6dc8bc05a95324de512ef7999b47507e712ccb76.zip
Tighten up against malformed user ids in events
A few months ago 3c85f049 introduced validation of user ids but the rest of the library code wasn't updated to the fact that Connection::user() may quite legitimately (if not routinely) return nullptr, leading to crashes particularaly when malformed ids come from the wire. This commit adds necessary checks before using the value returned from user(). Closes #456.
Diffstat (limited to 'lib/identity/definitions/request_email_validation.h')
0 files changed, 0 insertions, 0 deletions