File: 0007-Fix-recover-CDF-option.patch

package info (click to toggle)
bandwidthd 2.0.1%2Bcvs20090917-10
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,204 kB
  • sloc: sh: 3,008; ansic: 2,746; php: 1,263; yacc: 216; makefile: 162; lex: 36; sql: 27
file content (31 lines) | stat: -rw-r--r-- 1,291 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: Logan Gunthorpe <logang@deltatee.com>
Date: Sat, 20 Jul 2013 18:17:14 +0200
Subject: Fix recover CDF option

Upstream (sourceforge) Tracker id 2018613 (See Bug link)
New upstream bug id 39.

Bug: http://sourceforge.net/p/bandwidthd/bugs/39/
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=660810
Forwarded: yes
---
 bandwidthd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bandwidthd.c b/bandwidthd.c
index 7d40c0c..bc34aa4 100644
--- a/bandwidthd.c
+++ b/bandwidthd.c
@@ -1192,10 +1192,10 @@ void RCDF_Load(FILE *cdf)
 
         if (fscanf(cdf, "%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu,",
             &ip->Send.total, &ip->Send.icmp, &ip->Send.udp,
-            &ip->Send.tcp, &ip->Send.ftp, &ip->Send.http, &ip->Send.mail, &ip->Send.p2p) != 7
+            &ip->Send.tcp, &ip->Send.ftp, &ip->Send.http, &ip->Send.mail, &ip->Send.p2p) != 8
           || fscanf(cdf, "%llu,%llu,%llu,%llu,%llu,%llu,%llu,%llu",
             &ip->Receive.total, &ip->Receive.icmp, &ip->Receive.udp,
-            &ip->Receive.tcp, &ip->Receive.ftp, &ip->Receive.http, &ip->Receive.mail, &ip->Receive.p2p) != 7)
+            &ip->Receive.tcp, &ip->Receive.ftp, &ip->Receive.http, &ip->Receive.mail, &ip->Receive.p2p) != 8)
 			goto End_RecoverDataFromCdf;		
 		}