diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/AimOscar/src/avatars.cpp | 4 |
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;
|