fd_socket now also modifies NW_STR

Assign to local variable sooner.
This commit is contained in:
Steven Danneman 2017-06-30 11:15:13 -07:00
parent deb7fd52a9
commit a8ae90137d

View File

@ -3447,8 +3447,8 @@ client_simulation_sockets() {
done done
debugme echo "sending client hello..." debugme echo "sending client hello..."
code2network "${data}" code2network "${data}"
fd_socket 5 || return 6
data="$NW_STR" data="$NW_STR"
fd_socket 5 || return 6
[[ "$DEBUG" -ge 4 ]] && echo "\"$data\"" [[ "$DEBUG" -ge 4 ]] && echo "\"$data\""
printf -- "$data" >&5 2>/dev/null & printf -- "$data" >&5 2>/dev/null &
sleep $USLEEP_SND sleep $USLEEP_SND