All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Leblond <eric@inl.fr>
To: netfilter-devel@vger.kernel.org
Cc: Eric Leblond <eric@inl.fr>
Subject: [ULOGD PATCH 2/3] Fix ulogd --info when displaying some default value.
Date: Thu,  7 Feb 2008 09:22:20 +0100	[thread overview]
Message-ID: <12023725412388-git-send-email-eric@inl.fr> (raw)
In-Reply-To: <12023725412-git-send-email-eric@inl.fr>

THis patch fixes a crash in ulogd2 when dealing with default value given
as string.

Signed-off-by: Eric Leblond <eric@inl.fr>
---
:100644 100644 fe4106a... de2fd96... M	src/ulogd.c
 src/ulogd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/ulogd.c b/src/ulogd.c
index fe4106a..de2fd96 100644
--- a/src/ulogd.c
+++ b/src/ulogd.c
@@ -290,7 +290,7 @@ void get_plugin_infos(struct ulogd_plugin *me)
 				case CONFIG_TYPE_STRING:
 					printf("String");
 					printf(", Default: %s", 
-					       me->config_kset->ces[i].u.value);
+					       me->config_kset->ces[i].u.string);
 					break;
 				case CONFIG_TYPE_INT:
 					printf("Integer");
-- 
1.5.2.5


  parent reply	other threads:[~2008-02-07  8:22 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-07  8:22 [ULOGD PATCH 0/3] Protocol auto detection, bugfixes and doc Eric Leblond
2008-02-07  8:22 ` [ULOGD PATCH 1/3] Do not set oob.family in config as it can be found in packet Eric Leblond
2008-02-08 17:49   ` Peter Warasin
2008-02-08 18:59     ` Eric Leblond
2008-02-09 17:21   ` Pablo Neira Ayuso
2008-02-09 18:13     ` Peter Warasin
2008-02-07  8:22 ` Eric Leblond [this message]
2008-02-09 17:22   ` [ULOGD PATCH 2/3] Fix ulogd --info when displaying some default value Pablo Neira Ayuso
2008-02-07  8:22 ` [ULOGD PATCH 3/3] Add examples to config file Eric Leblond
2008-02-09 12:45   ` [RESEND PATCH] Improve ulogd.conf.in Eric Leblond
2008-02-09 17:43     ` Pablo Neira Ayuso
2008-02-09 23:19       ` [ULOGD PATCH] Document IPv4 and IPv6 logging difference in NFLOG Eric Leblond
2008-02-10  2:06         ` Pablo Neira Ayuso
2008-02-09 17:23   ` [ULOGD PATCH 3/3] Add examples to config file Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12023725412388-git-send-email-eric@inl.fr \
    --to=eric@inl.fr \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.