commit 30092ed02b9cc955551db472bc8039a641ef5fc2 parent c4fc6a292498dc05991e869b73bdee9eeb703165 Author: Bjornsdottir Root <root@Regeneratus.BC.CA.Umbrellix.NET> Date: Fri, 7 Oct 2022 15:24:09 -0700 fix embarrassing nullptr bug Diffstat:
M | src/mxf-remote/mxf-remote.c | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mxf-remote/mxf-remote.c b/src/mxf-remote/mxf-remote.c @@ -1136,8 +1136,10 @@ int main (int argcount, char **args) if (!stralloc_copys(&Host,relayhost)) temp_nomem(); } - if (!port) port = routesproto->defport; - if (skipmx) break; + if (skipmx) { + if (!port) port = routesproto->defport; + break; + } } // fire off the SRV/MX DNS volley; wait Timeoutconnect seconds from when