Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove obsolete check against esp_enable_pkt
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Feb 2, 2015
1 parent 246c3ca commit b1a21fa
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions oncp.c
Expand Up @@ -1645,13 +1645,8 @@ int oncp_mainloop(struct openconnect_info *vpninfo, int *timeout)
return 1;
}
/* Don't free the 'special' packets */
if (vpninfo->current_ssl_pkt == vpninfo->deflate_pkt)
if (vpninfo->current_ssl_pkt == vpninfo->deflate_pkt) {
free(vpninfo->pending_deflated_pkt);
else if (vpninfo->current_ssl_pkt == &esp_enable_pkt) {
/* If we sent the special ESP enable packet, ESP
* is now enabled. And we don't need to free it. */
if (vpninfo->dtls_state == DTLS_CONNECTING)
vpninfo->dtls_state = DTLS_CONNECTED;
} else {
/* Only set the ESP state to connected and actually start
sending packets on it once the enable message has been
Expand Down

0 comments on commit b1a21fa

Please sign in to comment.