head	1.4;
access;
symbols
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.3;
locks; strict;
comment	@# @;


1.4
date	2003.01.06.21.31.30;	author demon;	state dead;
branches;
next	1.3;

1.3
date	2002.07.02.06.16.39;	author demon;	state Exp;
branches;
next	1.2;

1.2
date	2001.02.26.08.38.19;	author demon;	state dead;
branches;
next	1.1;

1.1
date	2001.02.22.09.25.11;	author demon;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Update to 2.1pre7
@
text
@This patch is taken from diff'ing links-2.1pre1 against links-2.0 and fixes
possible mem_free(NULL) issues.

diff -Nur x.c.orig x.c
--- x.c.orig	Fri Jun  7 15:24:31 2002
+++ x.c	Tue Jun 11 14:08:26 2002
@@@@ -998,7 +998,7 @@@@
 			}
 			
 		x_free_hash_table();
-		mem_free(x_driver_param);
+		if (x_driver_param) mem_free(x_driver_param);
 		return stracpy("No supported color depth found.\n");
 visual_found:;
 	}
@@@@ -1030,7 +1030,7 @@@@
 			snprintf(nevidim_te_ani_te_neslysim_ale_smrdis_jako_lejno,MAX_STR_LEN,
 			"Unsupported graphics mode: x_depth=%d, bits_per_pixel=%d, bytes_per_pixel=%d\n",x_driver.depth, x_depth, x_bitmap_bpp);
 			x_free_hash_table();
-			mem_free(x_driver_param);
+			if (x_driver_param) mem_free(x_driver_param);
 			return stracpy(nevidim_te_ani_te_neslysim_ale_smrdis_jako_lejno);
 		}
 		
@@@@ -1053,7 +1053,7 @@@@
 		unsigned char *t;
 
 		x_have_palette=1;
-		if((t=x_set_palette())){x_free_hash_table(); mem_free(x_driver_param); return t;}
+		if((t=x_set_palette())){x_free_hash_table(); if (x_driver_param) mem_free(x_driver_param); return t;}
 	}
 
 	x_black_pixel=BlackPixel(x_display,x_screen);
@@@@ -1090,16 +1090,16 @@@@
 	);
 
 	x_normal_gc=XCreateGC(x_display,fake_window,GCFillStyle|GCBackground,&gcv);
-	if (!x_normal_gc) {x_free_hash_table(); mem_free(x_driver_param); return stracpy("Cannot create graphic context.\n");}
+	if (!x_normal_gc) {x_free_hash_table(); if (x_driver_param) mem_free(x_driver_param); return stracpy("Cannot create graphic context.\n");}
 	
 	x_copy_gc=XCreateGC(x_display,fake_window,GCFunction,&gcv);
-	if (!x_copy_gc) {x_free_hash_table(); mem_free(x_driver_param); return stracpy("Cannot create graphic context.\n");}
+	if (!x_copy_gc) {x_free_hash_table(); if (x_driver_param) mem_free(x_driver_param); return stracpy("Cannot create graphic context.\n");}
 	
 	x_drawbitmap_gc=XCreateGC(x_display,fake_window,GCFunction,&gcv);
-	if (!x_drawbitmap_gc) {x_free_hash_table(); mem_free(x_driver_param); return stracpy("Cannot create graphic context.\n");}
+	if (!x_drawbitmap_gc) {x_free_hash_table(); if (x_driver_param) mem_free(x_driver_param); return stracpy("Cannot create graphic context.\n");}
 	
 	x_scroll_gc=XCreateGC(x_display,fake_window,GCGraphicsExposures|GCBackground,&gcv);
-	if (!x_scroll_gc) {x_free_hash_table(); mem_free(x_driver_param); return stracpy("Cannot create graphic context.\n");}
+	if (!x_scroll_gc) {x_free_hash_table(); if (x_driver_param) mem_free(x_driver_param); return stracpy("Cannot create graphic context.\n");}
 
 	XSetLineAttributes(x_display,x_normal_gc,1,LineSolid,CapRound,JoinRound);
 
@


1.3
log
@Bugfix patch from links-2.1-pre.

Submitted by:		Matthias Andree <matthias.andree@@stud.uni-dortmund.de>
@
text
@@


1.2
log
@Disable authentication.
Author reports links crashes often if it is enabled.
@
text
@d1 22
a22 4
--- http.c.orig	Thu Feb 22 12:21:56 2001
+++ http.c	Thu Feb 22 12:22:44 2001
@@@@ -540,14 +540,14 @@@@
 			e->redirect_get = h == 303;
d24 7
d32 23
a54 13
- 	/*if (h == 401) if ((d = parse_http_header(e->head, "WWW-Authenticate", NULL))) {
+ 	if (h == 401) if ((d = parse_http_header(e->head, "WWW-Authenticate", NULL))) {
  		if (!strncasecmp(d, "Basic", 5)) {
  			add_auth_entry(host, get_param(d, "realm"));
  			add_questions_entry(do_auth_dialog);
  			setcstate(c, S_QUESTIONS);
   		}
  		mem_free(d);
-  	}*/
+  	}
 	kill_buffer_data(rb, a);
 	c->cache = e;
 	info->close = 0;
@


1.1
log
@Enable Authentication.
Bump PORTREVISION.

Submitted by:	Ollivier Robert <roberto@@eurocontrol.fr>
@
text
@@

