diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-03 15:52:42 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-03 15:52:42 +0000 |
commit | 0edfa2415457fca76cc85976a4bcf2ae54f2144d (patch) | |
tree | 2c46f18f32603fe174eccda4f0115eb721ed622a | |
parent | 835a2be7f19aceee39f7bedee5b987709fdcc847 (diff) | |
download | rsyslog-0edfa2415457fca76cc85976a4bcf2ae54f2144d.tar.gz rsyslog-0edfa2415457fca76cc85976a4bcf2ae54f2144d.tar.xz rsyslog-0edfa2415457fca76cc85976a4bcf2ae54f2144d.zip |
cleanup
-rw-r--r-- | plugins/omgssapi/omgssapi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/omgssapi/omgssapi.c b/plugins/omgssapi/omgssapi.c index 7b9c7bb1..1ca6f105 100644 --- a/plugins/omgssapi/omgssapi.c +++ b/plugins/omgssapi/omgssapi.c @@ -638,21 +638,21 @@ ENDqueryEtryPt /* set a new GSSMODE based on config directive */ static rsRetVal setGSSMode(void __attribute__((unused)) *pVal, uchar *mode) { + DEFiRet; + if (!strcmp((char *) mode, "integrity")) { gss_mode = GSSMODE_MIC; - free(mode); dbgprintf("GSS-API gssmode set to GSSMODE_MIC\n"); } else if (!strcmp((char *) mode, "encryption")) { gss_mode = GSSMODE_ENC; - free(mode); dbgprintf("GSS-API gssmode set to GSSMODE_ENC\n"); } else { logerrorSz("unknown gssmode parameter: %s", (char *) mode); - free(mode); - return RS_RET_ERR; + iRet = RS_RET_INVALID_PARAMS; } + free(mode); - return RS_RET_OK; + return iRet; } |