comparison common-session.c @ 1641:a2bbc22ea1e6 coverity

merge coverity
author Matt Johnston <matt@ucc.asn.au>
date Thu, 21 Mar 2019 00:14:38 +0800
parents aabde6f57fce
children 76189c9ffea2
comparison
equal deleted inserted replaced
1610:96e4c9b2cc00 1641:a2bbc22ea1e6
66 66
67 ses.socket_prio = DROPBEAR_PRIO_DEFAULT; 67 ses.socket_prio = DROPBEAR_PRIO_DEFAULT;
68 /* Sets it to lowdelay */ 68 /* Sets it to lowdelay */
69 update_channel_prio(); 69 update_channel_prio();
70 70
71 #if !DROPBEAR_SVR_MULTIUSER
72 /* A sanity check to prevent an accidental configuration option
73 leaving multiuser systems exposed */
74 errno = 0;
75 getuid();
76 if (errno != ENOSYS) {
77 dropbear_exit("Non-multiuser Dropbear requires a non-multiuser kernel");
78 }
79 #endif
80
71 now = monotonic_now(); 81 now = monotonic_now();
72 ses.connect_time = now; 82 ses.connect_time = now;
73 ses.last_packet_time_keepalive_recv = now; 83 ses.last_packet_time_keepalive_recv = now;
74 ses.last_packet_time_idle = now; 84 ses.last_packet_time_idle = now;
75 ses.last_packet_time_any_sent = 0; 85 ses.last_packet_time_any_sent = 0;