-/* $Cambridge: exim/src/src/expand.c,v 1.71 2006/11/13 12:29:30 ph10 Exp $ */
+/* $Cambridge: exim/src/src/expand.c,v 1.72 2006/11/13 12:32:58 ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
alarm(timeout);
rc = connect(fd, (struct sockaddr *)(&sockun), sizeof(sockun));
alarm(0);
- if (rc < 0)
+ if (sigalrm_seen)
{
- expand_string_message = string_sprintf("failed to connect to socket "
- "%s: %s", sub_arg[0], strerror(errno));
+ expand_string_message = US "socket connect timed out";
goto SOCK_FAIL;
}
- if (sigalrm_seen)
+ if (rc < 0)
{
- expand_string_message = US "socket connect timed out";
+ expand_string_message = string_sprintf("failed to connect to socket "
+ "%s: %s", sub_arg[0], strerror(errno));
goto SOCK_FAIL;
}
}