Browse Source

Fix integer socket option values for FreeBSD

Feoramund 1 year ago
parent
commit
2b63684ccf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      core/net/socket_freebsd.odin

+ 2 - 0
core/net/socket_freebsd.odin

@@ -304,6 +304,8 @@ _set_option :: proc(socket: Any_Socket, option: Socket_Option, value: any, loc :
 			case:
 				panic("set_option() value must be an integer here", loc)
 			}
+			ptr = &int_value
+			len = size_of(int_value)
 	case:
 		unimplemented("set_option() option not yet implemented", loc)
 	}