NICMx / FORT-validator

RPKI cache validator
MIT License
47 stars 23 forks source link

"error = handle_bgpsec" msg while compiling (make) #61

Closed 65007 closed 2 years ago

65007 commented 2 years ago

Hi,

While compiling the validator in Ubuntu 20.04LTS I get the following "warning" and "error" msg. As the message seems to be related with BGPSEC (and possible the past week crash issue), I'm reporting this here:

gcc -DHAVE_CONFIG_H -I.    -Wall -Wno-cpp -Wpedantic -std=gnu11 -O2 -g  -I/usr/include/libxml2 -g -O2 -MT object/fort-certificate.o -MD -MP -MF object/.deps/fort-certificate.Tpo -c -o object/fort-certificate.o `test -f 'object/certificate.c' || echo './'`object/certificate.c
object/certificate.c: In function ‘certificate_traverse’:
object/certificate.c:2507:11: warning: ‘ski’ may be used uninitialized in this function [-Wmaybe-uninitialized]
 2507 |   error = handle_bgpsec(cert, ski,
      |           ^~~~~~~~~~~~~~~~~~~~~~~~
 2508 |       x509stack_peek_resources(validation_certstack(state)));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mv -f object/.deps/fort-certificate.Tpo object/.deps/fort-certificate.Po
ydahhrk commented 2 years ago

It's inoffensive, but I'll patch it shortly.