summaryrefslogtreecommitdiff
path: root/protocols/AimOscar/src/avatars.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-01-12 20:02:50 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-01-12 20:02:50 +0000
commitd29a4479c7b502dd728af326511b26bc0f821542 (patch)
tree28d88b9238c461d89d4e43699da86d7908010e56 /protocols/AimOscar/src/avatars.cpp
parent7b4a09b3aa3db73e2483045059be958f726201c0 (diff)
AIM:
-Crash fix git-svn-id: http://svn.miranda-ng.org/main/trunk@11844 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/AimOscar/src/avatars.cpp')
-rw-r--r--protocols/AimOscar/src/avatars.cpp4
1 files changed, 4 insertions, 0 deletions
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;