Regression in 3.2.2: knsupdate crashes on server connect

To reproduce:

% gdb knsupdate                                                             
(gdb) r
Starting program: /usr/bin/knsupdate 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
knsupdate> server $somednsserver
knsupdate> zone xyz
knsupdate> send

Program received signal SIGSEGV, Segmentation fault.
0x0000555555560a9f in net_send (net=net@entry=0x7ffffffcb990, buf=0x5555555915b0 "\204\310(", buf_len=21) at utils/common/netio.c:587
587	utils/common/netio.c: No such file or directory.
(gdb) bt
#0  0x0000555555560a9f in net_send (net=net@entry=0x7ffffffcb990, buf=0x5555555915b0 "\204\310(", buf_len=21)
    at utils/common/netio.c:587
#1  0x000055555555b6d4 in pkt_sendrecv (params=0x7ffffffcbb90) at utils/knsupdate/knsupdate_exec.c:456
#2  cmd_send (lp=<optimized out>, params=0x7ffffffcbb90) at utils/knsupdate/knsupdate_exec.c:851
#3  0x000055555555b1c6 in knsupdate_process_line (line=0x7ffffffcba90 "send", params=params@entry=0x7ffffffcbb90)
    at utils/knsupdate/knsupdate_exec.c:498
#4  0x000055555555bc00 in knsupdate_process_line (line=<optimized out>, params=params@entry=0x7ffffffcbb90)
    at utils/knsupdate/knsupdate_exec.c:486
#5  0x000055555555c197 in interactive_loop (params=params@entry=0x7ffffffcbb90)
    at utils/knsupdate/knsupdate_interactive.c:165
#6  0x000055555555bb20 in process_lines (params=0x7ffffffcbb90, input=0x7ffff7bf9800 <_IO_2_1_stdin_>)
    at utils/knsupdate/knsupdate_exec.c:519
#7  0x000055555555bcc4 in knsupdate_exec (params=params@entry=0x7ffffffcbb90) at utils/knsupdate/knsupdate_exec.c:553
#8  0x0000555555559ca2 in main (argc=<optimized out>, argv=0x7fffffffe308) at utils/knsupdate/knsupdate_main.c:35

Reproducible on Arch Linux and Void Linux on x86_64 with Knot 3.2.2.

Knot 3.2.1 works.