From d29a4479c7b502dd728af326511b26bc0f821542 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Mon, 12 Jan 2015 20:02:50 +0000 Subject: AIM: -Crash fix git-svn-id: http://svn.miranda-ng.org/main/trunk@11844 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/AimOscar/src/avatars.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'protocols/AimOscar/src') diff --git a/protocols/AimOscar/src/avatars.cpp b/protocols/AimOscar/src/avatars.cpp index a5d6c1cc5d..f36cd8c11d 100644 --- a/protocols/AimOscar/src/avatars.cpp +++ b/protocols/AimOscar/src/avatars.cpp @@ -28,6 +28,10 @@ void __cdecl CAimProto::avatar_request_thread(void* param) if (wait_conn(hAvatarConn, hAvatarEvent, 0x10)) { char *hash_str = getStringA(hContact, AIM_KEY_AH); + if (!hash_str) { + mir_free(sn); + return; + } char type = getByte(hContact, AIM_KEY_AHT, 1); size_t len = (strlen(hash_str) + 1) / 2; -- cgit v1.2.3