mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 08:45:28 +00:00
Fix logic error in setting client port
We need to do this after we possibly added the proxy. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
d06125c649
commit
69b01f7694
|
@ -665,13 +665,6 @@ run_test() {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fix client port
|
|
||||||
if [ -n "$PXY_CMD" ]; then
|
|
||||||
CLI_CMD=$( echo "$CLI_CMD" | sed s/+SRV_PORT/$PXY_PORT/g )
|
|
||||||
else
|
|
||||||
CLI_CMD=$( echo "$CLI_CMD" | sed s/+SRV_PORT/$SRV_PORT/g )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# update DTLS variable
|
# update DTLS variable
|
||||||
detect_dtls "$SRV_CMD"
|
detect_dtls "$SRV_CMD"
|
||||||
|
|
||||||
|
@ -681,6 +674,13 @@ run_test() {
|
||||||
PXY_CMD="$P_PXY"
|
PXY_CMD="$P_PXY"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# fix client port
|
||||||
|
if [ -n "$PXY_CMD" ]; then
|
||||||
|
CLI_CMD=$( echo "$CLI_CMD" | sed s/+SRV_PORT/$PXY_PORT/g )
|
||||||
|
else
|
||||||
|
CLI_CMD=$( echo "$CLI_CMD" | sed s/+SRV_PORT/$SRV_PORT/g )
|
||||||
|
fi
|
||||||
|
|
||||||
# prepend valgrind to our commands if active
|
# prepend valgrind to our commands if active
|
||||||
if [ "$MEMCHECK" -gt 0 ]; then
|
if [ "$MEMCHECK" -gt 0 ]; then
|
||||||
if is_polar "$SRV_CMD"; then
|
if is_polar "$SRV_CMD"; then
|
||||||
|
|
Loading…
Reference in a new issue