bgpd name2id change

2022-06-16 Thread Claudio Jeker
tb@ noticed that name2id conversions never check for error. Now I think this is fine but in that case the api should not do a half assed job of setting errnos. In the end if 0 is returned from name2id but the input was not the empty string then an error occurred. None of the callers does this chec

Re: bgpd name2id change

2022-06-16 Thread Theo Buehler
On Thu, Jun 16, 2022 at 02:42:31PM +0200, Claudio Jeker wrote: > tb@ noticed that name2id conversions never check for error. > Now I think this is fine but in that case the api should not do a half > assed job of setting errnos. > > In the end if 0 is returned from name2id but the input was not th