OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/0007-fix-gethostbyaddr_r-to-fill-struct-hostent.h_length-.patch
  5. # Copyright (C) 2016 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From d378d05848f745598216259b6dba7c70f0e90300 Mon Sep 17 00:00:00 2001
  17. From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
  18. Date: Tue, 22 Mar 2016 16:27:51 +0200
  19. Subject: [PATCH] fix gethostbyaddr_r to fill struct hostent.h_length as
  20. appropriate
  21. ---
  22. src/network/gethostbyaddr_r.c | 1 +
  23. 1 file changed, 1 insertion(+)
  24. diff --git a/src/network/gethostbyaddr_r.c b/src/network/gethostbyaddr_r.c
  25. index 66e0330..0f1e61a 100644
  26. --- a/src/network/gethostbyaddr_r.c
  27. +++ b/src/network/gethostbyaddr_r.c
  28. @@ -64,6 +64,7 @@ int gethostbyaddr_r(const void *a, socklen_t l, int af,
  29. }
  30. h->h_addrtype = af;
  31. + h->h_length = l;
  32. h->h_name = h->h_aliases[0];
  33. *res = h;
  34. return 0;
  35. --
  36. 2.7.4