summaryrefslogtreecommitdiff
path: root/gss-misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gss-misc.c')
-rw-r--r--gss-misc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gss-misc.c b/gss-misc.c
index d30eda0..6f4fea9 100644
--- a/gss-misc.c
+++ b/gss-misc.c
@@ -116,6 +116,9 @@ static int read_all(int fd, char *buf, unsigned int nbyte)
struct timeval tv;
#ifdef USE_UNLIMITED_SELECT
fd_set *pRfds = malloc(glbl.GetFdSetSize());
+
+ if (pRfds == NULL)
+ return -1;
#else
fd_set rfds;
fd_set *pRfds = &rfds;