summaryrefslogtreecommitdiff
path: root/gss-misc.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2014-08-18 17:48:20 +0200
committerMichael Biebl <biebl@debian.org>2014-08-18 17:48:20 +0200
commit1dfcd909d90f6fad4a612b6fd998d7473a9da399 (patch)
treeb9fb75cfd347088f1850b48e298c5db564304ece /gss-misc.c
parentdaeb0d03d4a65fa118ad25b34958fb9cacbbd6f4 (diff)
downloadrsyslog-1dfcd909d90f6fad4a612b6fd998d7473a9da399.tar.gz
Imported Upstream version 8.4.0upstream/8.4.0
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;