summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-12-03 10:09:00 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2008-12-03 10:09:00 +0100
commita7104880ee05722ad957b32824165561e7085ce8 (patch)
tree538b9ed0e86a29b3a71bcec070b972185c3de678
parent61b59a78c6b558ec06383fc5969178887d00abfc (diff)
downloadrsyslog-a7104880ee05722ad957b32824165561e7085ce8.tar.gz
rsyslog-a7104880ee05722ad957b32824165561e7085ce8.tar.xz
rsyslog-a7104880ee05722ad957b32824165561e7085ce8.zip
minor: net.c did not compile if GSSAPI support was disabled
-rw-r--r--runtime/net.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/net.c b/runtime/net.c
index 76dc185c..ac13597c 100644
--- a/runtime/net.c
+++ b/runtime/net.c
@@ -104,8 +104,10 @@ setAllowRoot(struct AllowedSenders **ppAllowRoot, uchar *pszType)
*ppAllowRoot = pAllowedSenders_UDP;
else if(!strcmp((char*)pszType, "TCP"))
*ppAllowRoot = pAllowedSenders_TCP;
+#ifdef USE_GSSAPI
else if(!strcmp((char*)pszType, "GSS"))
*ppAllowRoot = pAllowedSenders_GSS;
+#endif
else {
dbgprintf("program error: invalid allowed sender ID '%s', denying...\n", pszType);
ABORT_FINALIZE(RS_RET_CODE_ERR); /* everything is invalid for an invalid type */