"Fossies" - the Fresh Open Source Software Archive

Member "ipfire-2.x-2.27-core174/src/patches/collectd/0021-openvpn-Fix-copy-and-paste-error.patch" (7 Apr 2023, 670 Bytes) of package /linux/misc/ipfire-2.x-2.27-core174.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 From 41253b68808deade2a1866f0c24f4bbc029a92c2 Mon Sep 17 00:00:00 2001
    2 From: Michael Tremer <michael.tremer@ipfire.org>
    3 Date: Wed, 24 Sep 2014 14:38:04 +0200
    4 Subject: [PATCH 21/22] openvpn: Fix copy-and-paste error
    5 
    6 ---
    7  src/openvpn.c | 2 +-
    8  1 file changed, 1 insertion(+), 1 deletion(-)
    9 
   10 diff --git a/src/openvpn.c b/src/openvpn.c
   11 index f686721..2db3677 100644
   12 --- a/src/openvpn.c
   13 +++ b/src/openvpn.c
   14 @@ -293,7 +293,7 @@ static int multi1_read (char *name, FILE *fh)
   15             continue;
   16  
   17         // Ignore not yet fully established connections
   18 -       if (strcmp(fields[1], "UNDEF") == 0)
   19 +       if (strcmp(fields[0], "UNDEF") == 0)
   20             continue;
   21  
   22         if (collect_user_count)
   23 -- 
   24 1.9.3
   25