Bug 77570

Summary: bad source code
Product: [Retired] Red Hat Linux Reporter: d.binderman
Component: tcpdumpAssignee: Harald Hoyer <harald>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-03-10 15:32:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description d.binderman 2002-11-09 12:47:29 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk  (Win98; I)

Description of problem:

Hello there,

I just tried to compile package tcpdump-3.6.3-3 from Redhat 8.0.

Here are some of the compiler messages.

print-ip6opts.c:130: warning: `optlen' might be used uninitialized in this function

Here is a patch which fixes the messages.

*** ./tcpdump-3.6.2/print-ip6opts.c.old	2002-11-08 08:37:25.000000000 +0000
--- ./tcpdump-3.6.2/print-ip6opts.c	2002-11-08 08:38:44.000000000 +0000
***************
*** 127,133 ****
  ip6_opt_print(const u_char *bp, int len)
  {
      int i;
!     int optlen;
  
      for (i = 0; i < len; i += optlen) {
  	switch (bp[i]) {
--- 127,133 ----
  ip6_opt_print(const u_char *bp, int len)
  {
      int i;
!     int optlen = 0;
  
      for (i = 0; i < len; i += optlen) {
  	switch (bp[i]) {


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. compile the package
2.
3.
	

Additional info:

Comment 1 Harald Hoyer 2003-03-10 15:32:41 UTC
please report these kind of things upstream