Commit graph

5 commits

Author SHA1 Message Date
Ivan Mikhailov
69220ee866 Allow overrides of sntp.h
Changed quote marks with triangle brackets
for sntp.h to allow user creating a custom sntp.h
2017-12-07 20:55:03 +01:00
Our Air Quality
cd23acaa4a LwIP v2 support 2017-08-30 13:51:32 +10:00
funnydog
65a0c95b13 extras/sntp: fix an off-by-one bug in sntp_set_servers()
The function sntp_set_servers() duplicates the strings supplied in the
server_url[] array into new strings but forgets to allocate the extra
byte needed for the \0 terminator for each string.

Fix the problem by using strdup(), which allocates the right amount of
memory and copies the string at once.
2017-03-14 20:32:51 +01:00
iosen
37180024f4 sntp: free the pbuf after sending the request
Fixes a memory leak.
2016-06-26 21:36:04 +10:00
doragasu
16c831fffa Added sntp support and example 2016-03-09 17:18:51 +01:00