ogserver/src
OpenGnSys Support Team a71cba4df1 #990 fix crash in wol with malformed IP address
==28831== 1 errors in context 1 of 2:
==28831== Invalid read of size 1
==28831==    at 0x55AC6FD: inet_aton (inet_addr.c:127)
==28831==    by 0x10ECCA: WakeUp (ogAdmServer.c:337)
==28831==    by 0x10EED6: Levanta (ogAdmServer.c:292)
==28831==    by 0x11651E: og_cmd_wol (rest.c:498)
==28831==    by 0x11651E: og_client_state_process_payload_rest (rest.c:3970)
==28831==    by 0x110CF3: og_client_read_cb (core.c:143)
==28831==    by 0x4E41D72: ev_invoke_pending (in /usr/lib/x86_64-linux-gnu/libev.so.4.0.0)
==28831==    by 0x4E453DD: ev_run (in /usr/lib/x86_64-linux-gnu/libev.so.4.0.0)
==28831==    by 0x10E3E5: ev_loop (ev.h:835)
==28831==    by 0x10E3E5: main (main.c:100)
==28831==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

Use number of matching ip addresses in the database, skip if zero.
2021-03-30 13:58:31 +02:00
..
cfg.c #988 remove legacy configuration 2020-10-07 11:17:00 +02:00
cfg.h #988 remove legacy configuration 2020-10-07 11:17:00 +02:00
client.c #980 memleak in json ogclient path 2021-02-23 12:35:16 +01:00
client.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
core.c #1021 remove LOG_DEBUG syslog 2021-02-04 13:36:15 +01:00
core.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
dbi.c #941 Fix get computer center id 2020-10-27 17:04:26 +01:00
dbi.h #942 Extend GET /images function 2020-10-14 17:31:43 +02:00
json.c #941 Add og_json_parse_string_copy(...) function 2020-10-06 16:04:14 +02:00
json.h #1008 Restore support for 4 disks and 16 partitions 2020-11-18 13:10:34 +01:00
list.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
main.c #988 remove legacy configuration 2020-10-07 11:17:00 +02:00
ogAdmLib.c #971 remove unused contieneIP function in ogAdmLib 2020-10-07 11:18:37 +02:00
ogAdmLib.h #988 remove legacy configuration file 2020-10-05 14:49:17 +02:00
ogAdmServer.c #1004 update size to 64-bits 2021-03-19 16:58:50 +01:00
ogAdmServer.h #988 remove legacy configuration 2020-10-07 11:17:00 +02:00
rest.c #990 fix crash in wol with malformed IP address 2021-03-30 13:58:31 +02:00
rest.h #1022 increase maximum API REST request size 2021-02-04 13:29:24 +01:00
schedule.c #997 Set stale check flag when processing schedule/create 2021-03-11 12:22:36 +01:00
schedule.h #997 Set stale check flag when processing schedule/create 2021-03-11 12:22:36 +01:00
utils.c #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
utils.h #971 rename sources folder to src 2020-06-26 20:13:42 +02:00
wol.c #988 remove legacy configuration 2020-10-07 11:17:00 +02:00
wol.h #990 add wol_socket_open() 2020-08-06 13:39:46 +02:00