[PR #2148] [MERGED] Fix capacity of slice #14718

Closed
opened 2026-08-05 03:06:11 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2148
Author: @pappz
Created: 6/18/2024
Status: Merged
Merged: 6/18/2024
Merged by: @pappz

Base: mainHead: fix/android-route-nil


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 client/internal/routemanager/manager.go (+1 -1)

📄 Description

Fix nil pointer crash in setInitialClientRoutes.go:34.
In the slice the first element could be nil, because of the incorrect slice initialization.

Describe your changes

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2148 **Author:** [@pappz](https://github.com/pappz) **Created:** 6/18/2024 **Status:** ✅ Merged **Merged:** 6/18/2024 **Merged by:** [@pappz](https://github.com/pappz) **Base:** `main` ← **Head:** `fix/android-route-nil` --- ### 📝 Commits (1) - [`089dab8`](https://github.com/netbirdio/netbird/commit/089dab8d0746fd6f7a1314889f1f84b996a0bf9d) Fix capacity of slice ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/routemanager/manager.go` (+1 -1) </details> ### 📄 Description Fix nil pointer crash in setInitialClientRoutes.go:34. In the slice the first element could be nil, because of the incorrect slice initialization. ## Describe your changes ## Issue ticket number and link ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:06:11 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#14718