patch-src_upnp_c 1.3 KB

1234567891011121314151617181920
  1. --- gmediaserver-0.13.0.orig/src/upnp.c 2007-10-28 09:20:43.000000000 +0100
  2. +++ gmediaserver-0.13.0/src/upnp.c 2014-01-27 13:07:07.541007109 +0100
  3. @@ -265,7 +265,7 @@ handle_get_var_request(struct Upnp_State
  4. say(3, _("Event device UDN: %s\n"), quotearg(request->DevUDN));
  5. say(3, _("Event service ID: %s\n"), quotearg(request->ServiceID));
  6. say(3, _("Event variable name: %s\n"), quotearg(request->StateVarName));
  7. - say(3, _("Event source: %s\n"), inet_ntoa(request->CtrlPtIPAddr));
  8. + say(3, _("Event source: %s\n"), inet_ntoa(*(struct in_addr *)&request->CtrlPtIPAddr));
  9. if (strcmp(request->DevUDN, device_udn) != 0) {
  10. say(1, _("Discarding event - event device UDN (%s) not recognized\n"), quotearg(request->DevUDN));
  11. @@ -306,7 +306,7 @@ handle_action_request(struct Upnp_Action
  12. say(3, _("Event device UDN: %s\n"), quotearg(request->DevUDN));
  13. say(3, _("Event service ID: %s\n"), quotearg(request->ServiceID));
  14. say(3, _("Event action name: %s\n"), quotearg(request->ActionName));
  15. - say(3, _("Event source: %s\n"), inet_ntoa(request->CtrlPtIPAddr));
  16. + say(3, _("Event source: %s\n"), inet_ntoa(*(struct in_addr *)&request->CtrlPtIPAddr));
  17. say_document(4, _("Event action request:\n"), request->ActionRequest);
  18. if (strcmp(request->DevUDN, device_udn) != 0) {