Ok
Le 12 juin 08 à 11:34, Ralf Schlatterbeck a écrit :
> I don't think I've already sent this:
>
> # HG changeset patch
> # User Ralf Schlatterbeck <[EMAIL PROTECTED]>
> # Date 1210706231 -7200
> # Node ID 02612d3751551c35b4c264e086914e11485a777e
> # Parent 8401b0e6ee02c81cbb8d484ba3fe94bef95e9536
> This fixes a double-free condition in libc.
> We free the pointer only if it is not NULL and make sure it *is* NULL
> after freeing it.
>
> diff -r 8401b0e6ee02 -r 02612d375155 wifo/phapi/phapi-old.c
> --- a/wifo/phapi/phapi-old.c Sun May 11 15:19:40 2008 +0200
> +++ b/wifo/phapi/phapi-old.c Tue May 13 21:17:11 2008 +0200
> @@ -3545,10 +3545,14 @@ static void ph_update_expiration_for_con
> break;
> }
> osip_free(uristr);
> + uristr = 0;
> }
> }
>
> - osip_free(uristr);
> + if (uristr)
> + {
> + osip_free(uristr);
> + }
>
> }
>
> --
> Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16
> Open Source Consulting Fax: +43/2243/26465-23
> Reichergasse 131 www: http://www.runtux.com
> A-3411 Weidling email: [EMAIL PROTECTED]
> osAlliance member email: [EMAIL PROTECTED]
> _______________________________________________
> QuteCom-dev mailing list
> [email protected]
> http://lists.qutecom.org/mailman/listinfo/qutecom-dev
>
_______________________________________________
QuteCom-dev mailing list
[email protected]
http://lists.qutecom.org/mailman/listinfo/qutecom-dev