Skip to content

cli: fix crash on autocompletion

Beniamino Galvani requested to merge bg/cli-monitor-crash-rh1716948 into master

@connections is NULL when doing autocompletion. Fixes the following:

$ nmcli --complete-args con monitor "" help id uuid path filename ... Segmentation fault (core dumped)

Fixes: 4b329727 ('cli: rework connection handling for multiple results')

https://bugzilla.redhat.com/show_bug.cgi?id=1716948

Merge request reports