buglwIP - A Lightweight TCP/IP stack - Bugs: bug #64045, [altcp_tls_mbedtls.c] Warnings...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #64045: [altcp_tls_mbedtls.c] Warnings about not checked return values from mbedtls_ssl_flush_output()

Submitter:  Giuseppe Modugno <giusloq>
Submitted:  Fri 14 Apr 2023 08:18:58 AM UTC
   
 
Category:  apps Severity:  3 - Normal
Item Group:  Compiler Warning Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
lwIP version:  git head

Thu 04 May 2023 11:53:49 AM UTC, comment #1: 
Jonathan D <jona>
Fri 14 Apr 2023 08:18:58 AM UTC, original submission:  

In altcp_tls_mbedtls. there are some calls to mbedtls_ssl_flush_output(). This is a function that is defined as:


MBEDTLS_CHECK_RETURN_CRITICAL
int mbedtls_ssl_flush_output(mbedtls_ssl_context *ssl);


in ssl_internal.h.

In my build process, the compiler emits some warnings as the following:


lwip\src\apps\altcp_tls\altcp_tls_mbedtls.c|532|warning: ignoring return value of 'mbedtls_ssl_flush_output', declared with attribute warn_unused_result [-Wunused-result]|


It seems it is important to check the error code returned by this function, but lwip does not.

Giuseppe Modugno <giusloq>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jona (Posted a comment)
  • -email is unavailable- added by giusloq (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.12