From 73750a469939ab38feddba5f8eba9ac861869f7f Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 8 Sep 2005 00:12:44 +0000 Subject: Better checks for valid IO. --- common/smtppass.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/smtppass.h b/common/smtppass.h index 9dbe935..d10bed1 100644 --- a/common/smtppass.h +++ b/common/smtppass.h @@ -77,7 +77,7 @@ typedef struct spio } spio_t; -#define spio_valid(io) ((io)->fd != -1) +#define spio_valid(io) ((io) && (io)->fd != -1) /* Setup the io structure (allocated elsewhere) */ void spio_init(spio_t* io, const char* name); -- cgit v1.2.3