[Slirp] [Git][slirp/libslirp][master] 2 commits: bootp: fix g_str_has_prefix warning/critical
Samuel Thibault (@sthibaul)
gitlab at gitlab.freedesktop.org
Thu Feb 17 12:00:31 UTC 2022
Samuel Thibault pushed to branch master at slirp / libslirp
Commits:
9acc7b0e by Marc-André Lureau at 2022-02-17T12:07:51+04:00
bootp: fix g_str_has_prefix warning/critical
Fixes: commit 60535013c3e ("bootp: add support for UEFI HTTP boot")
Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
- - - - -
804110bc by Samuel Thibault at 2022-02-17T12:00:28+00:00
Merge branch 'bootp-has-prefix' into 'master'
bootp: fix g_str_has_prefix warning/critical
See merge request slirp/libslirp!115
- - - - -
1 changed file:
- src/bootp.c
Changes:
=====================================
src/bootp.c
=====================================
@@ -351,7 +351,7 @@ static void bootp_reply(Slirp *slirp,
we assume that, if the bootfile parameter was configured as an http
URL, the user intends to perform UEFI HTTP boot, so send this option
automatically */
- if (g_str_has_prefix(slirp->bootp_filename, "http://")) {
+ if (slirp->bootp_filename && g_str_has_prefix(slirp->bootp_filename, "http://")) {
val = strlen(UEFI_HTTP_VENDOR_CLASS_ID);
if (q + val + 2 >= end) {
g_warning("DHCP packet size exceeded, "
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/e61e18f0d5d7bb20eb081d0159b184a89f64eba9...804110bc5c5d1b777313057f84a9b68bb5b2f448
--
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/e61e18f0d5d7bb20eb081d0159b184a89f64eba9...804110bc5c5d1b777313057f84a9b68bb5b2f448
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20220217/4d0b18fa/attachment.htm>
More information about the Slirp
mailing list