jech / babeld

The Babel routing daemon
http://www.irif.fr/~jch/software/babel/
MIT License
385 stars 92 forks source link

Fix free of un-allocated pointer in invalid configuration parsing #120

Closed MisterDA closed 4 months ago

MisterDA commented 4 months ago

Try: ./babeld -C interface wlp0s20f3 type tunnel

free(NULL) is a no-op.

cc @Tomo59.

jech commented 4 months ago

@Tomo59, could you please confirm if this fixes the issue?

Tomo59 commented 4 months ago

Hello,

yes I confirm it fixes the issue. I have now a proper error message Couldn't parse configuration from command line..

jech commented 4 months ago

Thanks to both of you.