Bullanga / dns-hijack

Dns per al projecte Inite
GNU General Public License v3.0
1 stars 0 forks source link

Possible error #14

Open xXIty opened 4 years ago

xXIty commented 4 years ago

https://github.com/dhap0/dns-hijack/blob/5de55106997dbad29066e85a9c404c7a6a777c23/src/utils.c#L52

Possible error en el loop d'aquesta funcio. Iterador i sense usar.

xXIty commented 4 years ago

Sembla que hem de replantejar la variable records

Segons explica aquest post, per poder fer un sizeof(records) es necessari tenir static a la declaracio de l'array. AQUESTA DECLARACIO NO ES COMPATIBLE AMB EXTERN.

De moment poso una variable amb el nombre d'elements.

ferrerax commented 4 years ago

Ok, que fem amb l'issue doncs?