diff options
Diffstat (limited to 'meta-webserver/recipes-httpd/monkey/files/0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch')
| -rw-r--r-- | meta-webserver/recipes-httpd/monkey/files/0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/meta-webserver/recipes-httpd/monkey/files/0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch b/meta-webserver/recipes-httpd/monkey/files/0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch index f4bab49aa7..6bc0250877 100644 --- a/meta-webserver/recipes-httpd/monkey/files/0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch +++ b/meta-webserver/recipes-httpd/monkey/files/0001-fastcgi-Use-value-instead-of-address-of-sin6_port.patch | |||
| @@ -12,19 +12,14 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 12 | plugins/fastcgi/fcgi_handler.c | 2 +- | 12 | plugins/fastcgi/fcgi_handler.c | 2 +- |
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | 14 | ||
| 15 | diff --git a/plugins/fastcgi/fcgi_handler.c b/plugins/fastcgi/fcgi_handler.c | ||
| 16 | index 9e095e3c..e8e1eec1 100644 | ||
| 17 | --- a/plugins/fastcgi/fcgi_handler.c | 15 | --- a/plugins/fastcgi/fcgi_handler.c |
| 18 | +++ b/plugins/fastcgi/fcgi_handler.c | 16 | +++ b/plugins/fastcgi/fcgi_handler.c |
| 19 | @@ -245,7 +245,7 @@ static inline int fcgi_add_param_net(struct fcgi_handler *handler) | 17 | @@ -247,7 +247,7 @@ static inline int fcgi_add_param_net(str |
| 20 | struct sockaddr_in *s4 = (struct sockaddr_in *)&addr4; | 18 | struct sockaddr_in *s4 = (struct sockaddr_in *)&addr4; |
| 21 | memset(&addr4, 0, sizeof(addr4)); | 19 | memset(&addr4, 0, sizeof(addr4)); |
| 22 | addr4.sin_family = AF_INET; | 20 | addr4.sin_family = AF_INET; |
| 23 | - addr4.sin_port = &s->sin6_port; | 21 | - addr4.sin_port = &s->sin6_port; |
| 24 | + addr4.sin_port = s->sin6_port; | 22 | + addr4.sin_port = s->sin6_port; |
| 25 | memcpy(&addr4.sin_addr.s_addr, | 23 | memcpy(&addr4.sin_addr.s_addr, |
| 26 | s->sin6_addr.s6_addr + 12, | 24 | s->sin6_addr.s6_addr + 12, |
| 27 | sizeof(addr4.sin_addr.s_addr)); | 25 | sizeof(addr4.sin_addr.s_addr)); |
| 28 | -- | ||
| 29 | 2.37.2 | ||
| 30 | |||
