summaryrefslogtreecommitdiffstats
path: root/plugins/omgssapi/omgssapi.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-17 18:06:06 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-17 18:06:06 +0200
commitf590c1d52afbae2d16182864084edae84f541835 (patch)
tree389b1abc8b26f43f5fa8fc4c87119ba42a65e3ca /plugins/omgssapi/omgssapi.c
parent665ac5df67b6613dfe338396d6cec91e678a0394 (diff)
downloadrsyslog-f590c1d52afbae2d16182864084edae84f541835.tar.gz
rsyslog-f590c1d52afbae2d16182864084edae84f541835.tar.xz
rsyslog-f590c1d52afbae2d16182864084edae84f541835.zip
modified omfwd to work with netstrm (and also did some cleanup)
Diffstat (limited to 'plugins/omgssapi/omgssapi.c')
-rw-r--r--plugins/omgssapi/omgssapi.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/omgssapi/omgssapi.c b/plugins/omgssapi/omgssapi.c
index 3f6600ca..6f940f99 100644
--- a/plugins/omgssapi/omgssapi.c
+++ b/plugins/omgssapi/omgssapi.c
@@ -174,8 +174,6 @@ CODESTARTdbgPrintInstInfo
ENDdbgPrintInstInfo
-/* CODE FOR SENDING TCP MESSAGES */
-
/* This function is called immediately before a send retry is attempted.
* It shall clean up whatever makes sense.
* rgerhards, 2007-12-28
@@ -207,9 +205,7 @@ static rsRetVal TCPSendGSSInit(void *pvData)
base = (gss_base_service_name == NULL) ? "host" : gss_base_service_name;
out_tok.length = strlen(pData->f_hname) + strlen(base) + 2;
- if ((out_tok.value = malloc(out_tok.length)) == NULL) {
- ABORT_FINALIZE(RS_RET_OUT_OF_MEMORY);
- }
+ CHKmalloc(out_tok.value = malloc(out_tok.length));
strcpy(out_tok.value, base);
strcat(out_tok.value, "@");
strcat(out_tok.value, pData->f_hname);