ALT Linux repositórios
Group :: Sistema/Bibliotecas
RPM: libghttp
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: libghttp-1.0.9-deb-malloc.patch
Download
Download
--- libghttp-1.0.9~/ghttp.c 2001-01-23 00:32:15 +0000
+++ libghttp-1.0.9/ghttp.c 2004-05-15 09:23:17 +0000
@@ -59,6 +59,11 @@ ghttp_request_new(void)
/* create everything */
l_return = malloc(sizeof(struct _ghttp_request));
+
+ /* 16.09.2003 GM Failure handling */
+ if (l_return == NULL)
+ return l_return;
+
memset(l_return, 0, sizeof(struct _ghttp_request));
l_return->uri = http_uri_new();
l_return->proxy = http_uri_new();