summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/Skype/skypeapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/!NotAdopted/Skype/skypeapi.c')
-rw-r--r--plugins/!NotAdopted/Skype/skypeapi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/!NotAdopted/Skype/skypeapi.c b/plugins/!NotAdopted/Skype/skypeapi.c
index 2a6eb1b76e..e26be6e6d2 100644
--- a/plugins/!NotAdopted/Skype/skypeapi.c
+++ b/plugins/!NotAdopted/Skype/skypeapi.c
@@ -1463,6 +1463,12 @@ static int _ConnectToSkypeAPI(char *path, int iStart) {
}
for ( ;; ) {
char *ptr = SkypeRcv ("CONNSTATUS", INFINITE);
+ if (!ptr)
+ {
+ AttachStatus=SKYPECONTROLAPI_ATTACH_NOT_AVAILABLE;
+ return -1;
+ }
+
if (strcmp (ptr+11, "CONNECTING"))
{
free (ptr);