Hi,
On Tue, Feb 14, 2023 at 02:56:58PM +0100, Arne Schwabe wrote:
> resolve_ovpn_netlink_id(int msglevel)
> {
> - int ret;
> struct nl_sock *nl_sock = nl_socket_alloc();
>
> - ret = genl_connect(nl_sock);
> + if (!nl_sock)
> + {
> + msg(msglevel, "Allocating net link socket failed");
> + }
... shouldn't we abort in this case, aka, M_FATAL (or "return -errno")?
gert
--
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]
signature.asc
Description: PGP signature
_______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
