Mailinglist Archive: opensuse-bugs (6606 mails)

< Previous Next >
[Bug 529120] New: openldap2-2.4.16-3.10: use of local variable after fclose
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 7 Aug 2009 03:48:39 -0600
  • Message-id: <bug-529120-21960@xxxxxxxxxxxxxxxxxxxxxxxx/>
http://bugzilla.novell.com/show_bug.cgi?id=529120


Summary: openldap2-2.4.16-3.10: use of local variable after
fclose
Classification: openSUSE
Product: openSUSE 11.2
Version: Factory
Platform: All
OS/Version: openSUSE 11.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Other
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---


I just had a look at factory package openldap2-2.4.16-3.10

For source code file openldap-2.4.16/servers/slapd/back-sock/compare.c
around line 80 is the source code for the
function sock_back_compare.

I notice the following lines of code

fclose( fp );

/* read in the result and send it along */
sock_read_and_send_results( op, rs, fp );

fclose( fp );

So it seems that the fp local variable is used after it is
been closed. This looks wrong to me. This code might benefit
from some rework.

--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >