* more details.
*
* You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <string.h>
#include <sys/types.h>
#include <arpa/inet.h>
-#include "config.h"
+#include "build-config.h"
#include "keyid.h"
#include "keystructs.h"
#include "onak.h"
uint64_t keyid;
int i;
- keyid = 0;
for (keyid = 0, i = 12; i < 20; i++) {
keyid <<= 8;
keyid += fingerprint->fp[i];
uint8_t data;
#endif
- if (packet == NULL)
+ if (packet == NULL || packet->data == NULL)
return ONAK_E_INVALID_PARAM;
switch (packet->data[0]) {