Merge branch 'pixma-sa-size' into 'master'

pixma: fix broadcast_sa size calculation

Closes #426

See merge request sane-project/backends!572
escl-add-user-and-password
Ralph Little 2022-03-29 05:45:03 +00:00
commit 586ff11af5
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -994,7 +994,7 @@ prepare_socket(const char *if_name, const bjnp_sockaddr_t *local_sa,
/* send broadcasts to the broadcast address of the interface */ /* send broadcasts to the broadcast address of the interface */
memcpy(dest_sa, broadcast_sa, sa_size(dest_sa) ); memcpy(dest_sa, broadcast_sa, sa_size(broadcast_sa) );
/* we fill port when we send the broadcast */ /* we fill port when we send the broadcast */
dest_sa -> ipv4.sin_port = htons(0); dest_sa -> ipv4.sin_port = htons(0);