[PATCH] fix to pcap.c in 3.0.0beta3

Tony Jago tony at its.uq.edu.au
Thu Jul 24 01:54:34 GMT 2003


Hi, I am in the process of back porting the xfile code from 3.0 to 2.2.8a
(but thats another story). In the process I noticed a minor error in the
3.0 code. Patch attached.
-------------- next part --------------
*** source/printing/pcap.c.dist	Thu Jul 24 11:41:39 2003
--- source/printing/pcap.c	Thu Jul 24 11:41:54 2003
***************
*** 208,214 ****
  		  	   /* probably a good printer ???		*/
  		  	   free (line);
  		  	   SAFE_FREE(pName);
! 		  	   fclose(pfile);
  		  	   return(True);
  		  	  }
  		  	
--- 208,214 ----
  		  	   /* probably a good printer ???		*/
  		  	   free (line);
  		  	   SAFE_FREE(pName);
! 		  	   x_fclose(pfile);
  		  	   return(True);
  		  	  }
  		  	
***************
*** 222,228 ****
  		  		/* it's a good virtual printer */
  		  		free (line);
  		  		SAFE_FREE(pName);
! 		  		fclose(pfile);
  		  		return(True);
  		  	  }
  		  	  break;
--- 222,228 ----
  		  		/* it's a good virtual printer */
  		  		free (line);
  		  		SAFE_FREE(pName);
! 		  		x_fclose(pfile);
  		  		return(True);
  		  	  }
  		  	  break;


More information about the samba-technical mailing list