1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/www/cgihtml/files/patch-aa
Peter Pentchev 05fb9e9e83 Initialize a linked list before returning if no HTTP cookies are available.
Bump PORTREVISION to indicate a bugfix.

Submitted by:	Alexey V. Neyman <avn@any.ru>
2001-04-12 07:05:34 +00:00

14 lines
338 B
Plaintext

--- cgi-lib.c Wed Apr 11 20:03:57 2001
+++ cgi-lib.c Wed Apr 11 20:04:20 2001
@@ -529,9 +529,9 @@
int numcookies = 0;
short NM = 1;
+ list_create(entries);
if (cookies == NULL)
return 0;
- list_create(entries);
window = entries->head;
len = strlen(cookies);
entry.name = (char *)malloc(sizeof(char) * len + 1);